GNOME Bugzilla – Bug 170195
gimp_drawable_transform_scale and gimp_drawable_transform_scale_default are not working correctly
Last modified: 2008-01-15 12:49:52 UTC
Please describe the problem: Scaling procedures (called from script-fu plugin) returns an error everytime y0 >= x1 Steps to reproduce: (gimp-drawable-transform-scale-default 31 155 185 180 190 1 1) Actual results: ERROR: Procedural database execution failed: Expected results: no error Does this happen every time? yes Other information: probably some c&p bug - fix in tools/pdbgen/pdb/drawable_transform.pdb:574 and tools/pdbgen/pdb/drawable_transform.pdb:621 trans_info[Y0] < trans_info[Y1]); instead of trans_info[Y0] < trans_info[X1]);
Good spot! Will fix that right away.
Fixed in both branches: 2005-03-13 Michael Natterer <mitch@gimp.org> * tools/pdbgen/pdb/drawable_transform.pdb (drawable_transform_scale) (drawable_transform_scale_default): applied fix from Theodor de Ment which fixes a wrong precondition check which made certain scale operations impossible. Fixes bug #170195. * tools/pdbgen/pdb/transform_tools.pdb (scale): fixed the same copy & paste bug here. * app/pdb/drawable_transform_cmds.c * app/pdb/transform_tools_cmds.c: regenerated.