From b359c0797c403c8f7f9c69bc874f34844b4860c3 Mon Sep 17 00:00:00 2001 From: Filip Sykala Date: Fri, 29 Oct 2021 12:13:45 +0200 Subject: [PATCH] Fix linux --- src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp | 7 +++---- src/slic3r/GUI/Gizmos/GLGizmoEmboss.hpp | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp index 24976aa28..755220d7a 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp @@ -613,11 +613,10 @@ void GLGizmoEmboss::draw_advanced() { if (m_font.has_value()) m_font->cache.clear(); process(); } + if (ImGui::InputFloat(_u8L("Emboss[in mm]").c_str(), &m_font_prop.emboss)) process(); - if (ImGui::InputInt(_u8L("CharGap[in font points]").c_str(), &m_font_prop.char_gap)) - process(); - if (ImGui::InputInt(_u8L("LineGap[in font points]").c_str(), &m_font_prop.line_gap)) - process(); + if (ImGui::InputInt(_u8L("CharGap[in font points]").c_str(), &m_font_prop.char_gap)) process(); + if (ImGui::InputInt(_u8L("LineGap[in font points]").c_str(), &m_font_prop.line_gap)) process(); // when more collection add selector if (m_font.has_value() && m_font->count > 1) { diff --git a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.hpp b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.hpp index 182916865..1583e967c 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.hpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.hpp @@ -16,6 +16,7 @@ #include +class wxFont; namespace Slic3r{class AppConfig;} namespace Slic3r::GUI { class GLGizmoEmboss : public GLGizmoBase @@ -72,8 +73,6 @@ private: bool load_configuration(ModelVolume *volume); // Create notification when unknown font type is used - bool notify_unknown_font_type(ModelVolume *volume); - bool m_exist_notification; void create_notification_not_valid_font(const TextConfiguration& tc); void remove_notification_not_valid_font();