1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-13 08:24:27 +00:00

OSX: Forced set the input value for SpinControl,

since the value inserted from the clipboard is not updated
This commit is contained in:
YuSanka
2019-04-26 13:05:43 +02:00
parent 6373ee2b85
commit 046466164f
+5
View File
@@ -505,6 +505,11 @@ void SpinCtrl::BUILD() {
else tmp_value = -9999;
#ifdef __WXOSX__
propagate_value();
// Forcibly set the input value for SpinControl, since the value
// inserted from the clipboard is not updated under OSX
if (tmp_value > -9999)
dynamic_cast<wxSpinCtrl*>(window)->SetValue(tmp_value);
#endif
}), temp->GetId());