Merge pull request #5159 from mloidl/repetier_fix

Possible segmentation fault in physical printer dialog when Host is set to "Repetier"
This commit is contained in:
Vojtěch Bubník 2020-11-30 09:36:57 +01:00 committed by GitHub
commit 031eca533e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1085,7 +1085,7 @@ void Choice::set_values(const wxArrayString &values)
// # it looks that Clear() also clears the text field in recent wxWidgets versions,
// # but we want to preserve it
auto ww = dynamic_cast<wxBitmapComboBox*>(window);
auto ww = dynamic_cast<choice_ctrl*>(window);
auto value = ww->GetValue();
ww->Clear();
ww->Append("");