OSX: Forced set the input value for SpinControl,
since the value inserted from the clipboard is not updated
This commit is contained in:
parent
6373ee2b85
commit
046466164f
1 changed files with 5 additions and 0 deletions
|
@ -505,6 +505,11 @@ void SpinCtrl::BUILD() {
|
||||||
else tmp_value = -9999;
|
else tmp_value = -9999;
|
||||||
#ifdef __WXOSX__
|
#ifdef __WXOSX__
|
||||||
propagate_value();
|
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
|
#endif
|
||||||
}), temp->GetId());
|
}), temp->GetId());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue