mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-03 17:05:43 +02:00
Fix of #2237
This commit is contained in:
@@ -520,8 +520,14 @@ void SpinCtrl::BUILD() {
|
|||||||
|
|
||||||
// Forcibly set the input value for SpinControl, since the value
|
// Forcibly set the input value for SpinControl, since the value
|
||||||
// inserted from the clipboard is not updated under OSX
|
// inserted from the clipboard is not updated under OSX
|
||||||
if (tmp_value > -9999)
|
if (tmp_value > -9999) {
|
||||||
dynamic_cast<wxSpinCtrl*>(window)->SetValue(tmp_value);
|
wxSpinCtrl* spin = dynamic_cast<wxSpinCtrl*>(window);
|
||||||
|
spin->SetValue(tmp_value);
|
||||||
|
|
||||||
|
// But in SetValue() is executed m_text_ctrl->SelectAll(), so
|
||||||
|
// discard this selection and set insertion point to the end of string
|
||||||
|
spin->GetText()->SetInsertionPointEnd();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}), temp->GetId());
|
}), temp->GetId());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user