mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
fixed possible segmentation in physical printer dialog
* When pressing "Refresh Printers" in Physical Printer Dialog slicer crashed because of a wrong cast
This commit is contained in:
parent
cd2b502c38
commit
c5391d3354
1 changed files with 1 additions and 1 deletions
|
@ -1074,7 +1074,7 @@ void Choice::set_values(const wxArrayString &values)
|
||||||
|
|
||||||
// # it looks that Clear() also clears the text field in recent wxWidgets versions,
|
// # it looks that Clear() also clears the text field in recent wxWidgets versions,
|
||||||
// # but we want to preserve it
|
// # but we want to preserve it
|
||||||
auto ww = dynamic_cast<wxBitmapComboBox*>(window);
|
auto ww = dynamic_cast<choice_ctrl*>(window);
|
||||||
auto value = ww->GetValue();
|
auto value = ww->GetValue();
|
||||||
ww->Clear();
|
ww->Clear();
|
||||||
ww->Append("");
|
ww->Append("");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue