fix check z_step if 0

This commit is contained in:
supermerill 2021-08-21 11:17:57 +02:00
parent b567fd445b
commit 8c0576d9b2

View File

@ -2978,8 +2978,8 @@ void TabPrinter::toggle_options()
} }
//z step checks //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.); int64_t z_step_Mlong = (int64_t)(z_step * 1000000.);
DynamicPrintConfig new_conf; DynamicPrintConfig new_conf;
bool has_changed = false; bool has_changed = false;