Merge branch 'microoptimize-label-wfh' into 'main'

Microoptimize GtkLabel width-for-height computation

See merge request GNOME/gtk!6219
This commit is contained in:
Matthias Clasen 2023-08-05 15:15:55 +00:00
commit 857f50649c

View File

@ -1202,7 +1202,7 @@ my_pango_layout_get_width_for_height (PangoLayout *layout,
else if (text_height > for_height)
min = mid + 1;
else
max = mid;
max = text_width;
}
return min * PANGO_SCALE;