Fix double undo/redo snapshot when using SpinCtrl
This commit is contained in:
parent
60894a26dd
commit
48e1919ff1
2 changed files with 2 additions and 4 deletions
src/slic3r/GUI
|
@ -877,10 +877,10 @@ void SpinCtrl::BUILD() {
|
|||
|
||||
void SpinCtrl::propagate_value()
|
||||
{
|
||||
if (suppress_propagation)
|
||||
// check if value was really changed
|
||||
if (boost::any_cast<int>(m_value) == tmp_value)
|
||||
return;
|
||||
|
||||
suppress_propagation = true;
|
||||
if (tmp_value == UNDEF_VALUE) {
|
||||
on_kill_focus();
|
||||
} else {
|
||||
|
@ -894,7 +894,6 @@ void SpinCtrl::propagate_value()
|
|||
#endif
|
||||
on_change_field();
|
||||
}
|
||||
suppress_propagation = false;
|
||||
}
|
||||
|
||||
void SpinCtrl::msw_rescale()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue