From 5ce91555f39cbe5ba87bb2654de4f116d11ab11c Mon Sep 17 00:00:00 2001 From: Filip Sykala Date: Thu, 23 Sep 2021 12:17:07 +0200 Subject: [PATCH] Fix apple --- src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp index aaacfd7aa..37fb1aa46 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp @@ -17,6 +17,9 @@ #include #include +#ifdef __APPLE__ +#include +#endif // apple namespace Slic3r { class WxFontUtils @@ -619,7 +622,7 @@ std::optional WxFontUtils::load_font(const wxFont &font) return {}; #elif __APPLE__ const wxNativeFontInfo *info = font.GetNativeFontInfo(); - CTFontDescriptorRef descriptor = info3->GetCTFontDescriptor(); + CTFontDescriptorRef descriptor = info->GetCTFontDescriptor(); CFDictionaryRef attribs = CTFontDescriptorCopyAttributes(descriptor); CFStringRef url = (CFStringRef)CTFontDescriptorCopyAttribute(descriptor, kCTFontURLAttribute); std::string str(CFStringGetCStringPtr(CFURLGetString(anUrl),kCFStringEncodingUTF8));