From 519fca101466283ca5c993dec2ec2c6891d8add5 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 28 Oct 2018 16:32:20 -0700 Subject: [PATCH] [color] Minor --- src/hb-ot-color.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-color.cc b/src/hb-ot-color.cc index c89dc9e54..b38e67c45 100644 --- a/src/hb-ot-color.cc +++ b/src/hb-ot-color.cc @@ -320,7 +320,7 @@ hb_ot_color_glyph_reference_png (hb_font_t *font, hb_codepoint_t glyph) if (_get_sbix (font->face).has_data ()) blob = _get_sbix (font->face).reference_png (font, glyph, nullptr, nullptr); - if (hb_blob_get_length (blob) == 0 && _get_cbdt (font->face).has_data ()) + if (!blob->length && _get_cbdt (font->face).has_data ()) blob = _get_cbdt (font->face).reference_png (glyph, font->x_ppem, font->y_ppem); return blob;