From 22a17e92e76ccec565e93140ae3582ab758ef717 Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Wed, 23 Nov 2022 15:24:51 +0100 Subject: [PATCH] weird crash on mac due to pop style --- src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp index 883d9d080f..6d763e7786 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp @@ -1246,12 +1246,14 @@ void GLGizmoEmboss::draw_text_input() } // add border around input when warning appears +#ifndef __APPLE__ ScopeGuard input_border_sg; if (!warning.empty()) { ImGui::PushStyleVar(ImGuiStyleVar_FrameBorderSize, 1.0f); ImGui::PushStyleColor(ImGuiCol_Border, ImGuiWrapper::COL_ORANGE_LIGHT); input_border_sg = ScopeGuard([]() { ImGui::PopStyleColor(); ImGui::PopStyleVar(); }); } +#endif // flag for extend font ranges if neccessary // ranges can't be extend during font is activ(pushed)