From 6f46883f5b74b206a3b77246891ab2ac57a27c4e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 26 Mar 2018 19:55:22 -0700 Subject: [PATCH] [hdmx] Minor --- src/hb-ot-hdmx-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-hdmx-table.hh b/src/hb-ot-hdmx-table.hh index 8df99576..6ad57af2 100644 --- a/src/hb-ot-hdmx-table.hh +++ b/src/hb-ot-hdmx-table.hh @@ -134,7 +134,7 @@ struct hdmx inline const DeviceRecord& operator [] (unsigned int i) const { if (unlikely (i >= num_records)) return Null(DeviceRecord); - return StructAtOffset (this, min_size + i * size_device_record); + return StructAtOffset (this->data, i * size_device_record); } inline bool serialize (hb_serialize_context_t *c, const hdmx *source_hdmx, hb_subset_plan_t *plan) -- GitLab