diff options
author | YuSanka <yusanka@gmail.com> | 2019-01-14 17:38:54 +0300 |
---|---|---|
committer | YuSanka <yusanka@gmail.com> | 2019-01-14 17:41:24 +0300 |
commit | 66f998bdbf2e7013e72536d6b0d0f20bb668285e (patch) | |
tree | 56bc3f311e90290a27352b23dbca49ea514752b7 /src/slic3r/GUI/Field.cpp | |
parent | 19a64616087a8091151e5b5dd57414bffbcd7246 (diff) |
Fix of the change of the perimeters count in a vase-mode (part fix of #1649)
Diffstat (limited to 'src/slic3r/GUI/Field.cpp')
-rw-r--r-- | src/slic3r/GUI/Field.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slic3r/GUI/Field.cpp b/src/slic3r/GUI/Field.cpp index 2af2dc27d..3dd160432 100644 --- a/src/slic3r/GUI/Field.cpp +++ b/src/slic3r/GUI/Field.cpp @@ -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(); } |