[coretext] Fix lsearch
This commit is contained in:
parent
106388e766
commit
376738d411
|
@ -481,8 +481,8 @@ struct active_feature_t {
|
||||||
a->rec.setting < b->rec.setting ? -1 : a->rec.setting > b->rec.setting ? 1 :
|
a->rec.setting < b->rec.setting ? -1 : a->rec.setting > b->rec.setting ? 1 :
|
||||||
0;
|
0;
|
||||||
}
|
}
|
||||||
bool operator== (const active_feature_t *f) {
|
bool operator== (const active_feature_t& f) const {
|
||||||
return cmp (this, f) == 0;
|
return cmp (this, &f) == 0;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -677,7 +677,7 @@ _hb_coretext_shape (hb_shape_plan_t *shape_plan,
|
||||||
{
|
{
|
||||||
active_features.push (event->feature);
|
active_features.push (event->feature);
|
||||||
} else {
|
} else {
|
||||||
active_feature_t *feature = active_features.find (&event->feature);
|
active_feature_t *feature = active_features.lsearch (event->feature);
|
||||||
if (feature)
|
if (feature)
|
||||||
active_features.remove (feature - active_features.arrayZ);
|
active_features.remove (feature - active_features.arrayZ);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue