vcl/quartz/ctfonts.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 2ba05b4800d6cc322276a6911792363f8eb32051 Author: Stephan Bergmann <sberg...@redhat.com> Date: Thu May 8 21:46:37 2014 +0200
Handle CTFontCreatePathForGlyph failure Change-Id: I724b9983295fe408f4beadb9ed488ab77f9fa63f diff --git a/vcl/quartz/ctfonts.cxx b/vcl/quartz/ctfonts.cxx index 919ac5d..4382cae 100644 --- a/vcl/quartz/ctfonts.cxx +++ b/vcl/quartz/ctfonts.cxx @@ -199,6 +199,9 @@ bool CoreTextStyle::GetGlyphOutline( sal_GlyphId aGlyphId, basegfx::B2DPolyPolyg // XXX: this is broken if the glyph came from fallback font CTFontRef pCTFont = (CTFontRef)CFDictionaryGetValue( mpStyleDict, kCTFontAttributeName ); CGPathRef xPath = CTFontCreatePathForGlyph( pCTFont, nCGGlyph, NULL ); + if (!xPath) { + return false; + } GgoData aGgoData; aGgoData.mpPolyPoly = &rResult; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits