Next try to fix bug with CheckBox selection if cursor is in SpinCtrl.

This commit is contained in:
YuSanka 2018-04-05 12:12:35 +02:00
parent 2eee3a64b7
commit 28b6d222f2
2 changed files with 4 additions and 3 deletions

View file

@ -203,7 +203,8 @@ public:
}
void set_value(boost::any value, bool change_event = false) {
m_disable_change_event = !change_event;
dynamic_cast<wxSpinCtrl*>(window)->SetValue(boost::any_cast<int>(value));
tmp_value = boost::any_cast<int>(value);
dynamic_cast<wxSpinCtrl*>(window)->SetValue(tmp_value/*boost::any_cast<int>(value)*/);
m_disable_change_event = false;
}
boost::any get_value() override {