Merge branch 'fix-rtl-centered-labels' into 'main'

Fix centered text in labels

Closes #6836

See merge request GNOME/gtk!7724
This commit is contained in:
Matthias Clasen 2024-09-21 16:39:42 +00:00
commit 9ded3e64a2

View File

@ -1387,8 +1387,6 @@ get_layout_location (GtkLabel *self,
pango_layout_get_pixel_extents (self->layout, NULL, &logical);
x = floor ((xalign * (widget_width - logical.width)) - logical.x);
if (x < 0)
x = 0.f;
baseline = gtk_widget_get_baseline (widget);
if (baseline != -1)