diff --git a/src/slic3r/GUI/WipeTowerDialog.cpp b/src/slic3r/GUI/WipeTowerDialog.cpp index 59e27d493a..ce2fd92e39 100644 --- a/src/slic3r/GUI/WipeTowerDialog.cpp +++ b/src/slic3r/GUI/WipeTowerDialog.cpp @@ -498,11 +498,11 @@ WipingPanel::WipingPanel(wxWindow* parent, const std::vector& matrix, con edit_boxes[i][j]->Bind(wxEVT_TEXT, [this, i, j](wxCommandEvent& e) { wxString str = edit_boxes[i][j]->GetValue(); int value = wxAtoi(str); - if (value > MAX_FLUSH_VALUE) { - str = wxString::Format(("%d"), MAX_FLUSH_VALUE); - edit_boxes[i][j]->SetValue(str); - } - else if (value < 0) { + if (value > MAX_FLUSH_VALUE) { + str = wxString::Format(("%d"), MAX_FLUSH_VALUE); + edit_boxes[i][j]->SetValue(str); + } + else if (value < 0) { edit_boxes[i][j]->SetValue(wxString("0")); } });