From a590d4ceadd1f9bef03b2749981ddf7d4d281ae2 Mon Sep 17 00:00:00 2001 From: Noisyfox Date: Sat, 18 Nov 2023 17:24:08 +0800 Subject: [PATCH] Fix toolbar rendering on Windows --- src/slic3r/GUI/GLCanvas3D.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 036e7cbb340..07f59e98c03 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -7032,9 +7032,6 @@ void GLCanvas3D::_check_and_update_toolbar_icon_scale() float noitems_width = top_tb_width - size * items_cnt; // width of separators and borders in top toolbars // calculate scale needed for items in all top toolbars -#ifdef __WINDOWS__ - cnv_size.set_width(cnv_size.get_width() + m_separator_toolbar.get_width() + collapse_toolbar_width); -#endif float new_h_scale = (cnv_size.get_width() - noitems_width) / (items_cnt * GLToolbar::Default_Icons_Size); //for protect