mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 05:37:52 -06:00
fix linux compilation
This commit is contained in:
parent
907b160007
commit
43417b0f63
2 changed files with 6 additions and 2 deletions
|
@ -658,7 +658,11 @@ void ParamsModel::GetValue(wxVariant& variant, const wxDataViewItem& item, unsig
|
||||||
if (col == (unsigned int)0)
|
if (col == (unsigned int)0)
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
// variant << wxDataViewIconText(node->text, get_bmp_bundle(node->icon_name)->GetIconFor(m_ctrl->GetParent())); //TODO: update to bundle with wx update
|
// variant << wxDataViewIconText(node->text, get_bmp_bundle(node->icon_name)->GetIconFor(m_ctrl->GetParent())); //TODO: update to bundle with wx update
|
||||||
wxDataViewIconText(node->text, create_scaled_bitmap(node->icon_name, m_ctrl->GetParent()));
|
{
|
||||||
|
wxIcon icon;
|
||||||
|
icon.CopyFromBitmap(create_scaled_bitmap(node->icon_name, m_ctrl->GetParent()));
|
||||||
|
wxDataViewIconText(node->text, icon);
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
// variant << DataViewBitmapText(node->text, get_bmp_bundle(node->icon_name)->GetBitmapFor(m_ctrl->GetParent())); //TODO: update to bundle with wx update
|
// variant << DataViewBitmapText(node->text, get_bmp_bundle(node->icon_name)->GetBitmapFor(m_ctrl->GetParent())); //TODO: update to bundle with wx update
|
||||||
variant << DataViewBitmapText(node->text, create_scaled_bitmap(node->icon_name, m_ctrl->GetParent()));
|
variant << DataViewBitmapText(node->text, create_scaled_bitmap(node->icon_name, m_ctrl->GetParent()));
|
||||||
|
|
|
@ -63,7 +63,7 @@ protected:
|
||||||
|
|
||||||
void selection_changed(wxDataViewEvent& evt);
|
void selection_changed(wxDataViewEvent& evt);
|
||||||
|
|
||||||
wxBoxSizer* EditGCodeDialog::create_btn_sizer(long flags);
|
wxBoxSizer* create_btn_sizer(long flags);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue