After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 170195 - gimp_drawable_transform_scale and gimp_drawable_transform_scale_default are not working correctly
gimp_drawable_transform_scale and gimp_drawable_transform_scale_default are n...
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: libgimp
2.2.x
Other All
: Normal normal
: 2.2
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-03-13 14:57 UTC by Theodor de Ment
Modified: 2008-01-15 12:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Theodor de Ment 2005-03-13 14:57:49 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]);
Comment 1 Michael Natterer 2005-03-13 17:00:30 UTC
Good spot! Will fix that right away.
Comment 2 Michael Natterer 2005-03-13 17:34:10 UTC
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.