Bug 774383 - Text layer created by gimp-text-fontname doesn't...

...respect border when resized

gimp_text_layout_new(): in FIXED box mode, subtract (2 * border) when
setting the layout width.
This commit is contained in:
Michael Natterer 2016-11-15 13:23:00 +01:00
parent cc12c3a0d7
commit 1415a78fa1
1 changed files with 2 additions and 1 deletions

View File

@ -171,7 +171,8 @@ gimp_text_layout_new (GimpText *text,
pango_units_from_double
(gimp_units_to_pixels (text->box_width,
text->box_unit,
xres)));
xres) -
2 * layout->text->border));
break;
}