diff --git a/src/libslic3r/Emboss.cpp b/src/libslic3r/Emboss.cpp index 9fb9e39f7a..2ba873eece 100644 --- a/src/libslic3r/Emboss.cpp +++ b/src/libslic3r/Emboss.cpp @@ -452,7 +452,8 @@ std::optional priv::get_glyph(const stbtt_fontinfo &font_info, in std::reverse(pts.begin(), pts.end()); glyph_polygons.emplace_back(pts); } - glyph.shape = Emboss::heal_shape(glyph_polygons); + if (!glyph_polygons.empty()) + glyph.shape = Emboss::heal_shape(glyph_polygons); return glyph; }