Fix issue 85

This commit is contained in:
Filip Sykala - NTB T15p 2022-11-07 13:42:28 +01:00
parent e531df6dbb
commit dd6dfb5567

View File

@ -209,7 +209,7 @@ std::optional<wxFont> WxFontUtils::create_wxFont(const EmbossStyle &style)
double point_size = static_cast<double>(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()) {