summaryrefslogtreecommitdiff
path: root/src/hb-ot-name-table.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/hb-ot-name-table.hh')
-rw-r--r--src/hb-ot-name-table.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hb-ot-name-table.hh b/src/hb-ot-name-table.hh
index 37a2d42f..3d7b7311 100644
--- a/src/hb-ot-name-table.hh
+++ b/src/hb-ot-name-table.hh
@@ -165,8 +165,9 @@ struct name
inline void init (hb_face_t *face)
{
this->blob = hb_sanitize_context_t().reference_table<name> (face);
- const name *table = this->blob->as<name> ();
- const hb_array_t<NameRecord> &all_names = hb_array_t<NameRecord> (table->nameRecordZ.arrayZ, table->count);
+ this->table = this->blob->as<name> ();
+ const hb_array_t<NameRecord> &all_names = hb_array_t<NameRecord> (this->table->nameRecordZ.arrayZ,
+ this->table->count);
this->names.init ();
@@ -204,6 +205,7 @@ struct name
private:
hb_blob_t *blob;
public:
+ const name *table;
hb_vector_t<hb_ot_name_entry_t> names;
};