diff options
author | enricoturri1966 <enricoturri@seznam.cz> | 2020-08-17 16:59:36 +0300 |
---|---|---|
committer | enricoturri1966 <enricoturri@seznam.cz> | 2020-08-17 16:59:36 +0300 |
commit | c81d87b470f5550938202a222d79c01f1aba500b (patch) | |
tree | 9b7d08d3adb592d86490362184275e7bc79be9dc /src/slic3r | |
parent | 73603e49371f12e73a0a93b54ca88f11b1bdbbd5 (diff) |
Code cleanup
Diffstat (limited to 'src/slic3r')
-rw-r--r-- | src/slic3r/GUI/GCodeViewer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/slic3r/GUI/GCodeViewer.cpp b/src/slic3r/GUI/GCodeViewer.cpp index 4cb3ae1c5..1a4485402 100644 --- a/src/slic3r/GUI/GCodeViewer.cpp +++ b/src/slic3r/GUI/GCodeViewer.cpp @@ -385,10 +385,10 @@ void GCodeViewer::refresh(const GCodeProcessor::Result& gcode_result, const std: { case EMoveType::Extrude: { - m_extrusions.ranges.height.update_from(curr.height); - m_extrusions.ranges.width.update_from(curr.width); + m_extrusions.ranges.height.update_from(round_to_nearest(curr.height, 2)); + m_extrusions.ranges.width.update_from(round_to_nearest(curr.width, 2)); m_extrusions.ranges.fan_speed.update_from(curr.fan_speed); - m_extrusions.ranges.volumetric_rate.update_from(curr.volumetric_rate()); + m_extrusions.ranges.volumetric_rate.update_from(round_to_nearest(curr.volumetric_rate(), 2)); [[fallthrough]]; } case EMoveType::Travel: |