From e97d9f5f1738349fcca50565f40e7f37f78d3292 Mon Sep 17 00:00:00 2001 From: mitt3n <102060045+mitt3n@users.noreply.github.com> Date: Wed, 9 Apr 2025 08:01:32 -0500 Subject: [PATCH] Set MAX_FLUSH_VALUE to maximum possible value "Insanely high value that still plays nicely when converting between int and float (because it's internally stored in m_matrix as floats). 2147483520 (which is ~2 cubic meters) is the max value that can be saved properly in this case." --- src/slic3r/GUI/WipeTowerDialog.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/slic3r/GUI/WipeTowerDialog.cpp b/src/slic3r/GUI/WipeTowerDialog.cpp index 48be6dc999..59e27d493a 100644 --- a/src/slic3r/GUI/WipeTowerDialog.cpp +++ b/src/slic3r/GUI/WipeTowerDialog.cpp @@ -498,7 +498,6 @@ 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);