When font is loaded from .3mf it could have different type but it is not problem

This commit is contained in:
Filip Sykala - NTB T15p 2022-08-02 11:24:44 +02:00
parent a8f87bde22
commit 3f269e0719

View file

@ -2637,7 +2637,6 @@ EmbossDataBase GLGizmoEmboss::create_emboss_data_base() {
FontItem &fi = m_style_manager.get_font_item();
// actualize font path - during changes in gui it could be corrupted
// volume must store valid path
assert(fi.type == WxFontUtils::get_actual_type());
assert(m_style_manager.get_wx_font().has_value());
fi.path = WxFontUtils::store_wxFont(*m_style_manager.get_wx_font());
return TextConfiguration{fi, m_text};