Yet another fixup of previous commit

This commit is contained in:
Lukas Matena 2022-04-01 11:30:03 +02:00
parent 037a866f22
commit 6a5443dad2

View File

@ -548,7 +548,7 @@ std::string Print::validate(std::string* warning) const
&& i < layer_height_profiles[tallest_object_idx].size()) { && i < layer_height_profiles[tallest_object_idx].size()) {
if (i%2 == 0 && layer_height_profiles[tallest_object_idx][i] > layer_height_profiles[idx_object][layer_height_profiles[idx_object].size() - 2 ]) if (i%2 == 0 && layer_height_profiles[tallest_object_idx][i] > layer_height_profiles[idx_object][layer_height_profiles[idx_object].size() - 2 ])
break; break;
if (! std::abs(layer_height_profiles[idx_object][i] - layer_height_profiles[tallest_object_idx][i]) < eps) if (std::abs(layer_height_profiles[idx_object][i] - layer_height_profiles[tallest_object_idx][i]) > eps)
return L("The Wipe tower is only supported if all objects have the same variable layer height"); return L("The Wipe tower is only supported if all objects have the same variable layer height");
++i; ++i;
} }