diff --git a/src/slic3r/GUI/OG_CustomCtrl.cpp b/src/slic3r/GUI/OG_CustomCtrl.cpp index bf7faf565..22729c8c2 100644 --- a/src/slic3r/GUI/OG_CustomCtrl.cpp +++ b/src/slic3r/GUI/OG_CustomCtrl.cpp @@ -122,7 +122,7 @@ wxPoint OG_CustomCtrl::get_pos(const Line& line, Field* field_in/* = nullptr*/) line_height = win_height; }; - for (auto ctrl_line : ctrl_lines) { + for (CtrlLine& ctrl_line : ctrl_lines) { if (&ctrl_line.og_line == &line) { h_pos = m_bmp_mode_sz.GetWidth() + m_h_gap;