diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index d50985bb7..7099c9aeb 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -1258,7 +1258,7 @@ void PrintConfigDef::init_fff_params() def->set_default_value(new ConfigOptionFloats{ 1.75 }); def = this->add("filament_shrink", coPercents); - def->label = L("Shrikage"); + def->label = L("Shrinkage"); def->tooltip = L("Enter the shrinkage percentage that the filament will get after cooling (94% if you measure 94mm instead of 100mm)." " The part will be scaled in xy to conpensate." " Only the filament used for the perimeter is taken into account." diff --git a/src/libslic3r/Slicing.cpp b/src/libslic3r/Slicing.cpp index f45984bd5..82eafcf3b 100644 --- a/src/libslic3r/Slicing.cpp +++ b/src/libslic3r/Slicing.cpp @@ -32,7 +32,7 @@ coordf_t check_z_step(const coordf_t val, const coordf_t z_step) { //return int((val + z_step * 0.5) / z_step) * z_step; } inline bool test_z_step(const coordf_t val, const coordf_t z_step) { - if (z_step <= EPSILON) return val; + if (z_step <= EPSILON) return true; uint64_t valint = uint64_t(val * 100000000. + 0.1); uint64_t stepint = uint64_t(z_step * 100000000. + 0.1); return valint % stepint == 0;