[svg] Fix incorrect array referencing
This commit is contained in:
parent
5eb251aab0
commit
f10252b4b6
|
@ -106,7 +106,7 @@ struct SVG
|
||||||
|
|
||||||
inline const SVGDocumentIndexEntry &get_glyph_entry (hb_codepoint_t glyph_id) const
|
inline const SVGDocumentIndexEntry &get_glyph_entry (hb_codepoint_t glyph_id) const
|
||||||
{
|
{
|
||||||
const SortedArrayOf<SVGDocumentIndexEntry> docs = this+svgDocEntries;
|
const SortedArrayOf<SVGDocumentIndexEntry> &docs = this+svgDocEntries;
|
||||||
return docs[docs.bsearch (glyph_id)];
|
return docs[docs.bsearch (glyph_id)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue