From 8c0576d9b2ed7978e5389f193556a2b495b65158 Mon Sep 17 00:00:00 2001 From: supermerill Date: Sat, 21 Aug 2021 11:17:57 +0200 Subject: fix check z_step if 0 --- src/slic3r/GUI/Tab.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/slic3r/GUI/Tab.cpp') diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index 6f1171977..a20d10839 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -2978,8 +2978,8 @@ void TabPrinter::toggle_options() } //z step checks - { - double z_step = m_config->opt_float("z_step"); + double z_step = m_config->opt_float("z_step"); + if(z_step > 0){ int64_t z_step_Mlong = (int64_t)(z_step * 1000000.); DynamicPrintConfig new_conf; bool has_changed = false; -- cgit v1.2.3