[svg] Fix incorrect array referencing

This commit is contained in:
Ebrahim Byagowi 2018-10-29 10:29:58 +03:30 committed by GitHub
parent 5eb251aab0
commit f10252b4b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ struct SVG
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)];
}