From d6e040c282a9992d4cfebe85b3a931a43b2773d0 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Fri, 19 Jun 2020 12:48:01 +0200 Subject: [PATCH] Follow-up of e782d34ec81c3f45d1500b8fcc7b82e788047475 -> Fix in DPIAware::rescale() --- src/slic3r/GUI/GUI_Utils.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/GUI_Utils.hpp b/src/slic3r/GUI/GUI_Utils.hpp index c51c0cf42..2737b3edb 100644 --- a/src/slic3r/GUI/GUI_Utils.hpp +++ b/src/slic3r/GUI/GUI_Utils.hpp @@ -233,14 +233,14 @@ private: { this->Freeze(); -#if ENABLE_LAYOUT_NO_RESTART +#if ENABLE_LAYOUT_NO_RESTART && wxVERSION_EQUAL_OR_GREATER_THAN(3,1,3) if (m_force_rescale) { #endif // ENABLE_LAYOUT_NO_RESTART // rescale fonts of all controls scale_controls_fonts(this, m_new_font_point_size); // rescale current window font scale_win_font(this, m_new_font_point_size); -#if ENABLE_LAYOUT_NO_RESTART +#if ENABLE_LAYOUT_NO_RESTART && wxVERSION_EQUAL_OR_GREATER_THAN(3,1,3) m_force_rescale = false; } #endif // ENABLE_LAYOUT_NO_RESTART