mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-23 02:42:08 +00:00
Fix DataViewBitmapText assignment
This commit is contained in:
@@ -343,7 +343,10 @@ wxWindow* BitmapChoiceRenderer::CreateEditorCtrl(wxWindow* parent, wxRect labelR
|
||||
|
||||
bool BitmapChoiceRenderer::GetValueFromEditorCtrl(wxWindow* ctrl, wxVariant& value)
|
||||
{
|
||||
::ComboBox*c = static_cast<::ComboBox *>(ctrl);
|
||||
auto* c = dynamic_cast<::ComboBox*>(ctrl);
|
||||
if (!c)
|
||||
return false;
|
||||
|
||||
int selection = c->GetSelection();
|
||||
if (selection < 0)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user