From a55c85ecefab51e80c11ec5f41bb473cde907fc2 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Fri, 16 Aug 2024 10:59:10 +0200 Subject: [PATCH] Follow-up 785ad4ce: DoubleSlider: Fixed a check of the Custom G-code (this code was temporary commented and forgotten to uncomment) SPE-2445 --- src/slic3r/GUI/GUI_Preview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GUI_Preview.cpp b/src/slic3r/GUI/GUI_Preview.cpp index 0d6fdeb8d9..50e48c965c 100644 --- a/src/slic3r/GUI/GUI_Preview.cpp +++ b/src/slic3r/GUI/GUI_Preview.cpp @@ -21,6 +21,7 @@ #include "DoubleSliderForLayers.hpp" #include "ExtruderSequenceDialog.hpp" #include "Plater.hpp" +#include "Tab.hpp" #include "MainFrame.hpp" #include "MsgDialog.hpp" #include "format.hpp" @@ -456,7 +457,7 @@ void Preview::create_sliders() return ""; value = into_u8(dlg.GetValue()); - valid = true;// GUI::Tab::validate_custom_gcode("Custom G-code", value); // !ysFIXME validate_custom_gcode + valid = Tab::validate_custom_gcode("Custom G-code", value); } while (!valid); return value; });