Fix DataViewBitmapText assignment

This commit is contained in:
TheLegendTubaGuy
2026-05-16 00:12:06 -05:00
parent 1c0d0b89cc
commit da5a13a032
5 changed files with 121 additions and 13 deletions

View File

@@ -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;