From 0b16ffaa0772291289607daf31b794ef171fd502 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Thu, 27 May 2021 14:05:29 +0200 Subject: [PATCH] Follow-up of b3ca8cb0af264d7e7ea285de03978b5185c3ff14 -> Fixed typo --- src/slic3r/GUI/GCodeViewer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/GCodeViewer.cpp b/src/slic3r/GUI/GCodeViewer.cpp index 8ea1082f6..9139f4450 100644 --- a/src/slic3r/GUI/GCodeViewer.cpp +++ b/src/slic3r/GUI/GCodeViewer.cpp @@ -2898,8 +2898,8 @@ void GCodeViewer::render_legend() const // get used filament (meters and grams) from used volume in respect to the active extruder auto get_used_filament_from_volume = [this, imperial_units](double volume, int extruder_id) { double koef = imperial_units ? 1.0 / ObjectManipulation::in_to_mm : 0.001; - std::pair ret = { ret.first = koef * volume / (PI * sqr(0.5 * m_filament_diameters[extruder_id])), - ret.second = volume * m_filament_densities[extruder_id] * 0.001 }; + std::pair ret = { koef * volume / (PI * sqr(0.5 * m_filament_diameters[extruder_id])), + volume * m_filament_densities[extruder_id] * 0.001 }; return ret; };