Skip to content

Commit 1574292

Browse files
committed
fix: forgot to write retractions with given precision (CURA-2619)
1 parent ed3f9f1 commit 1574292

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gcodeExport.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ void GCodeExport::writeRetraction(RetractionConfig* config, bool force, bool ext
691691
{
692692
double speed = ((retraction_diff_e_amount < 0.0)? config->speed : extr_attr.last_retraction_prime_speed) * 60;
693693
current_e_value += retraction_diff_e_amount;
694-
*output_stream << "G1 F" << speed << " "
694+
*output_stream << "G1 F" << PrecisionedDouble{1, speed} << " "
695695
<< extr_attr.extruderCharacter << PrecisionedDouble{5, current_e_value} << new_line;
696696
currentSpeed = speed;
697697
estimateCalculator.plan(TimeEstimateCalculator::Position(INT2MM(currentPosition.x), INT2MM(currentPosition.y), INT2MM(currentPosition.z), eToMm(current_e_value)), currentSpeed);

0 commit comments

Comments
 (0)