From 9f4444a7d471bb7cb49ab27144ba1a89bce56f1c Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Fri, 6 Jul 2012 22:09:17 +0200 Subject: [PATCH] Add missing sprintf spotted by olasd Fixes 3c0057380582700ddf975079b682932ae2db6b03 --- lib/Slic3r/GCode.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/GCode.pm b/lib/Slic3r/GCode.pm index 58d0eed51..ec1b535f2 100644 --- a/lib/Slic3r/GCode.pm +++ b/lib/Slic3r/GCode.pm @@ -273,7 +273,7 @@ sub reset_e { my $self = shift; $self->extrusion_distance(0); - return "G92 %s0%s\n", $Slic3r::extrusion_axis, ($Slic3r::gcode_comments ? ' ; reset extrusion distance' : '') + return sprintf "G92 %s0%s\n", $Slic3r::extrusion_axis, ($Slic3r::gcode_comments ? ' ; reset extrusion distance' : '') if $Slic3r::extrusion_axis && !$Slic3r::use_relative_e_distances; }