Add missing sprintf spotted by olasd

Fixes 3c00573805
This commit is contained in:
Henrik Brix Andersen 2012-07-06 22:09:17 +02:00
parent 3c00573805
commit 9f4444a7d4

View File

@ -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;
}