From 346671e16139d85eb4801eaff3b761b4704ace8e Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Tue, 20 Dec 2016 13:21:39 +0100 Subject: [PATCH] Fix crash in bed shape dialog --- lib/Slic3r/GUI/BedShapeDialog.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Slic3r/GUI/BedShapeDialog.pm b/lib/Slic3r/GUI/BedShapeDialog.pm index ed6fb5cde5..9da717ab8a 100644 --- a/lib/Slic3r/GUI/BedShapeDialog.pm +++ b/lib/Slic3r/GUI/BedShapeDialog.pm @@ -212,6 +212,7 @@ sub _update_shape { my $rect_origin = $self->{optgroups}[SHAPE_RECTANGULAR]->get_value('rect_origin'); my ($x, $y) = @$rect_size; return if !looks_like_number($x) || !looks_like_number($y); # empty strings or '-' or other things + return if !$x || !$y; my ($x0, $y0) = (0,0); my ($x1, $y1) = ($x,$y); {