14 lines
586 B
Text
14 lines
586 B
Text
|
See https://gitlab.gnome.org/GNOME/gimp/-/issues/325
|
||
|
Index: app/text/gimptextlayout.c
|
||
|
--- app/text/gimptextlayout.c.orig
|
||
|
+++ app/text/gimptextlayout.c
|
||
|
@@ -655,7 +655,7 @@ gimp_text_layout_position (GimpTextLayout *layout)
|
||
|
GimpTextDirection base_dir = layout->text->base_dir;
|
||
|
gint width;
|
||
|
|
||
|
- pango_layout_get_pixel_size (layout->layout, &width, NULL);
|
||
|
+ width = layout->extents.width;
|
||
|
|
||
|
if ((base_dir == GIMP_TEXT_DIRECTION_LTR && align == PANGO_ALIGN_RIGHT) ||
|
||
|
(base_dir == GIMP_TEXT_DIRECTION_RTL && align == PANGO_ALIGN_LEFT) ||
|