From 8b6b192dac3e6e7e2ae9741bae04f04b19ae3a8c Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 1 Feb 2015 12:18:18 +0100 Subject: [PATCH] Throw an error for first_layer_height == 0. #2605 --- lib/Slic3r/Config.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Slic3r/Config.pm b/lib/Slic3r/Config.pm index 61d4bb97c..e2739c421 100644 --- a/lib/Slic3r/Config.pm +++ b/lib/Slic3r/Config.pm @@ -218,6 +218,8 @@ sub validate { # --first-layer-height die "Invalid value for --first-layer-height\n" if $self->first_layer_height !~ /^(?:\d*(?:\.\d+)?)%?$/; + die "Invalid value for --first-layer-height\n" + if $self->get_value('first_layer_height') <= 0; # --filament-diameter die "Invalid value for --filament-diameter\n"