mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-15 09:32:09 +00:00
Linux specific: Fixed ObjectDataViewModel::GetColumnType()
When "string" type was returned, strange editing TextControl was appeared. + Added check of the selection for ObjectList::toggle_printable_state() function
This commit is contained in:
@@ -1180,6 +1180,15 @@ int ObjectDataViewModel::GetExtruderNumber(const wxDataViewItem& item) const
|
||||
return atoi(node->m_extruder.c_str());
|
||||
}
|
||||
|
||||
wxString ObjectDataViewModel::GetColumnType(unsigned int col) const
|
||||
{
|
||||
if (col == colName || col == colExtruder)
|
||||
return wxT("DataViewBitmapText");
|
||||
if (col == colPrint || col == colEditing)
|
||||
return wxT("DataViewBitmap");
|
||||
return wxT("string");
|
||||
}
|
||||
|
||||
void ObjectDataViewModel::GetValue(wxVariant &variant, const wxDataViewItem &item, unsigned int col) const
|
||||
{
|
||||
wxASSERT(item.IsOk());
|
||||
|
||||
Reference in New Issue
Block a user