From dd6dfb5567397741b466600718dfb2dabba221ca Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Mon, 7 Nov 2022 13:42:28 +0100 Subject: [PATCH] Fix issue 85 --- src/slic3r/Utils/WxFontUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/Utils/WxFontUtils.cpp b/src/slic3r/Utils/WxFontUtils.cpp index b7bd97091..fb50fa0e5 100644 --- a/src/slic3r/Utils/WxFontUtils.cpp +++ b/src/slic3r/Utils/WxFontUtils.cpp @@ -209,7 +209,7 @@ std::optional WxFontUtils::create_wxFont(const EmbossStyle &style) double point_size = static_cast(fp.size_in_mm); wxFontInfo info(point_size); if (fp.family.has_value()) { - auto it = type_to_family.right.find(*fp.style); + auto it = type_to_family.right.find(*fp.family); if (it != type_to_family.right.end()) info.Family(it->second); } if (fp.face_name.has_value()) {