Add missing detach when clearing font features

Same as when setting the features, we need to detach (but keep
the engine data) when clearing them.

Change-Id: I3adcadfb24c4abfff9c9e1c4f42ed4af919c71f0
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
This commit is contained in:
Eskil Abrahamsen Blomfeldt 2023-11-28 09:24:10 +01:00
parent 5108192f67
commit e616f8decb

View File

@ -2481,6 +2481,10 @@ bool QFont::isFeatureSet(Tag tag) const
*/
void QFont::clearFeatures()
{
if (d->features.isEmpty())
return;
d->detachButKeepEngineData(this);
d->features.clear();
}