summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/unx/generic/glyphs/freetype_glyphcache.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx
index 36ddf3df64cd..9b251804dfd2 100644
--- a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx
+++ b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx
@@ -621,14 +621,16 @@ void FreetypeFont::InitGlyphData(const GlyphItem& rGlyph, GlyphData& rGD ) const
FT_Error rc = FT_Load_Glyph(maFaceFT, rGlyph.maGlyphId, mnLoadFlags);
- if( rc != FT_Err_Ok )
+ if (rc != FT_Err_Ok)
return;
if (mbArtBold)
FT_GlyphSlot_Embolden(maFaceFT->glyph);
FT_Glyph pGlyphFT;
- FT_Get_Glyph( maFaceFT->glyph, &pGlyphFT );
+ rc = FT_Get_Glyph(maFaceFT->glyph, &pGlyphFT);
+ if (rc != FT_Err_Ok)
+ return;
ApplyGlyphTransform(rGlyph.IsVertical(), pGlyphFT);