mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
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:
commit
9ded3e64a2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user