]> granicus.if.org Git - libass/commitdiff
Fix missing pointer dereference in 1636a551
authorOleg Oshmyan <chortos@inbox.lv>
Tue, 14 Jan 2014 13:11:01 +0000 (13:11 +0000)
committerOleg Oshmyan <chortos@inbox.lv>
Tue, 14 Jan 2014 13:11:01 +0000 (13:11 +0000)
libass/ass_shaper.c

index 4d4104e866fe8fe88bd0e5f083b406792b97e1a6..944603ee171d78cade5ea4f3ec19fdc2c4325977 100644 (file)
@@ -239,7 +239,7 @@ get_glyph(hb_font_t *font, void *font_data, hb_codepoint_t unicode,
 
     // rotate glyph advances for @fonts while we still know the Unicode codepoints
     if (*glyph != 0)
-        get_cached_metrics(metrics_priv, face, unicode, glyph);
+        get_cached_metrics(metrics_priv, face, unicode, *glyph);
 
     return *glyph != 0;
 }