Bug 581338 - Layer size does not change using the pdb 'gimp-text-layer-resize'

Fix the fix: use box-unit, not unit, for the box extents.
This commit is contained in:
Michael Natterer
2011-02-28 00:41:48 +01:00
parent 3bf3aa55a1
commit 4f59bb3431
2 changed files with 4 additions and 4 deletions

View File

@ -1112,10 +1112,10 @@ text_layer_resize_invoker (GimpProcedure *procedure,
_("Set text layer attribute"),
"box-mode", GIMP_TEXT_BOX_FIXED,
"box-width", gimp_pixels_to_units (width,
text->unit,
text->box_unit,
xres),
"box-height", gimp_pixels_to_units (height,
text->unit,
text->box_unit,
yres),
NULL);
}

View File

@ -1185,10 +1185,10 @@ HELP
_("Set text layer attribute"),
"box-mode", GIMP_TEXT_BOX_FIXED,
"box-width", gimp_pixels_to_units (width,
text->unit,
text->box_unit,
xres),
"box-height", gimp_pixels_to_units (height,
text->unit,
text->box_unit,
yres),
NULL);
}