From a8c9facf7a73cca39e3fed1f637db4858e64414a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 28 Oct 2018 18:32:37 -0700 Subject: [PATCH] [svg] Cosmetic --- src/hb-ot-color-svg-table.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-color-svg-table.hh b/src/hb-ot-color-svg-table.hh index 35a364772..55629769a 100644 --- a/src/hb-ot-color-svg-table.hh +++ b/src/hb-ot-color-svg-table.hh @@ -45,8 +45,8 @@ struct SVGDocumentIndexEntry inline hb_blob_t *reference_blob (hb_blob_t *svg_blob, unsigned int index_offset) const { - if (svgDocLength == 0) return hb_blob_get_empty (); - return hb_blob_create_sub_blob (svg_blob, (unsigned int) svgDoc + index_offset, + return hb_blob_create_sub_blob (svg_blob, + index_offset + (unsigned int) svgDoc, svgDocLength); }