Fix EXC_BAD_ACCESS during inline IM rendering with macligatures

This commit is contained in:
Kazuki Sakamoto
2015-11-15 10:21:58 -08:00
parent bc26247936
commit 1172ff20a3
+1 -1
View File
@@ -1120,7 +1120,7 @@ ligatureGlyphsForChars(const unichar *chars, CGGlyph *glyphs, CGPoint *positions
CGSize ligatureRanges[*length], regularRanges[*length];
// get the (ligature)glyphs and advances for the new text
UniCharCount offset = fetchGlyphsAndAdvances(ligature, glyphs, ligatureRanges, length);
UniCharCount offset = fetchGlyphsAndAdvances(ligature, glyphs, ligatureRanges, *length);
// fetch the advances for the base text
CTFontGetAdvancesForGlyphs(font, kCTFontOrientationDefault, refGlyphs, regularRanges, *length);