From 4bc49dcc5b794ef51a21dc73a832be290510fa03 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 29 Apr 2012 19:01:18 +0200 Subject: [PATCH] Fixed regression throwing fatal error when using --duplicate-grid --- lib/Slic3r/Print.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm index 61a324642..e3faa9bb9 100644 --- a/lib/Slic3r/Print.pm +++ b/lib/Slic3r/Print.pm @@ -176,8 +176,8 @@ sub arrange_objects { for my $x_copy (1..$Slic3r::duplicate_grid->[X]) { for my $y_copy (1..$Slic3r::duplicate_grid->[Y]) { push @{$self->copies->[0]}, [ - ($self->x_length + $dist) * ($x_copy-1), - ($self->y_length + $dist) * ($y_copy-1), + ($object->x_length + $dist) * ($x_copy-1), + ($object->y_length + $dist) * ($y_copy-1), ]; } }