Fix of the change of the perimeters count in a vase-mode (part fix of #1649)

This commit is contained in:
YuSanka 2019-01-14 15:38:54 +01:00
parent 19a6461608
commit 66f998bdbf
4 changed files with 13 additions and 2 deletions

View file

@ -436,7 +436,7 @@ void SpinCtrl::BUILD() {
propagate_value();
}), temp->GetId());
temp->Bind(wxEVT_SPINCTRL, ([this](wxCommandEvent e) { on_change_field(); }), temp->GetId());
temp->Bind(wxEVT_SPINCTRL, ([this](wxCommandEvent e) { propagate_value(); }), temp->GetId());
temp->Bind(wxEVT_TEXT_ENTER, ([this](wxCommandEvent e)
{
@ -472,7 +472,7 @@ void SpinCtrl::propagate_value()
{
if (tmp_value < 0)
on_kill_focus();
else
else if (boost::any_cast<int>(m_value) != tmp_value)
on_change_field();
}