Skip to content

Commit

Permalink
Fixing Perl unit tests: Fixed crash in calc_max_layer_height()
Browse files Browse the repository at this point in the history
  • Loading branch information
bubnikv committed Feb 7, 2022
1 parent f6c7fef commit 7989b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libslic3r/GCode/ToolOrdering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static double calc_max_layer_height(const PrintConfig &config, double max_object
{
double max_layer_height = std::numeric_limits<double>::max();
for (size_t i = 0; i < config.nozzle_diameter.values.size(); ++ i) {
double mlh = config.max_layer_height.values[i];
double mlh = config.max_layer_height.get_at(i);
if (mlh == 0.)
mlh = 0.75 * config.nozzle_diameter.values[i];
max_layer_height = std::min(max_layer_height, mlh);
Expand Down

0 comments on commit 7989b72

Please sign in to comment.