From ff20ad1052987b79196430ab61928c2bbdc3fa44 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Fri, 6 May 2022 07:30:03 +0200 Subject: [PATCH] Fixed warning --- src/slic3r/GUI/GCodeViewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GCodeViewer.cpp b/src/slic3r/GUI/GCodeViewer.cpp index afcc3f954..652410589 100644 --- a/src/slic3r/GUI/GCodeViewer.cpp +++ b/src/slic3r/GUI/GCodeViewer.cpp @@ -3942,7 +3942,7 @@ void GCodeViewer::render_legend(float& legend_height) std::vector custom_gcode_per_print_z = wxGetApp().is_editor() ? wxGetApp().plater()->model().custom_gcode_per_print_z.gcodes : m_custom_gcode_per_print_z; std::vector last_color(m_extruders_count); - for (int i = 0; i < m_extruders_count; ++i) { + for (size_t i = 0; i < m_extruders_count; ++i) { last_color[i] = m_tool_colors[i]; } int last_extruder_id = 1;