diff options
author | supermerill <merill@free.fr> | 2021-08-21 12:17:57 +0300 |
---|---|---|
committer | supermerill <merill@free.fr> | 2021-08-21 12:20:19 +0300 |
commit | 8c0576d9b2ed7978e5389f193556a2b495b65158 (patch) | |
tree | 511717e98c247dd7e4e994a5082794e4bcbb9600 /src/slic3r/GUI/Tab.cpp | |
parent | b567fd445ba900fa341c7fdb79e0b01eb56979b9 (diff) |
fix check z_step if 0
Diffstat (limited to 'src/slic3r/GUI/Tab.cpp')
-rw-r--r-- | src/slic3r/GUI/Tab.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |