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 68106 - transform tool scaling lock ratio acts funny
transform tool scaling lock ratio acts funny
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Tools
1.x
Other All
: Normal enhancement
: 2.2
Assigned To: GIMP Bugs
GIMP Bugs
: 73471 (view as bug list)
Depends on:
Blocks: 51108
 
 
Reported: 2002-01-06 03:41 UTC by ulwarth
Modified: 2004-06-22 09:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description ulwarth 2002-01-06 03:41:04 UTC
When using the transform tool to do scalaing, you can hold down ctrl+alt to get 
it to "lock" the ratio, which is normally what one wishes to do when scaling.  
However, because ctrl+alt seems to be more a combination of independant 
axis locks, it doesn't behave in a very useful manner...dragging the mouse 
down and to the left causes the layer to scale at a rate different than one 
would expect.  Then, bringing the mouse back to the original position does 
not bring the layer back to the original size.

How about a checkbox on the tool options for "fixed ratio" or something?
Comment 1 Dave Neary 2002-04-08 14:30:05 UTC
I can confirm this for 1.2 cvs. The hot keys just don't do what 
they say they do. The chain on the info dialog would certainly 
be a solution, but first & foremost is to fix what's there. I 
don't think it'd be difficult to make the info dialog of the 
scale tool behave like the top frame of the scale image dialog. 
I think it should probably be done in 1.2.

In any case, the bug (the hot keys not working) needs fixing. I 
suggest raising the priority of this to high?

Dave.
Comment 2 Dave Neary 2002-04-08 15:13:26 UTC
Supplementary information...

I was wrong. I confirmed this in a wrong way. This works the way 
it should. This is a feature request rather than a bug. Sorry. For 
the sake of interest, I was trying to C-Shift-Drag rather than 
C-M-Drag which works. Ooops.

For the sake of the original reporter, a look at the source 
confirms that when either Control or Alt are pressed while 
dragging, they lock one or other of the axes. When both are 
pressed, the aspect ratio is (as expected) locked. When neither 
are pressed, the usual thing happens :)

Sorry for unnecessarily changing the status. Will change this to a
feature request, and change status accordingly... I still think this
should go in 1.2, but for the moment I'm leaving the Target milestone
empty.

Dave.
Comment 3 Sven Neumann 2002-04-09 10:37:43 UTC
Sorry, no new features in 1.2.
Comment 4 Sven Neumann 2003-03-20 15:37:41 UTC
*** Bug 73471 has been marked as a duplicate of this bug. ***
Comment 5 Dave Neary 2003-07-26 10:33:38 UTC
Bumping a bunch of enhancement requests which will not be done by the feature
freeze to Future. 

Dave.
Comment 6 Sven Neumann 2004-02-09 23:07:41 UTC
Putting on the 2.2 milestone since the tracking bug is targetted for
2.2 also.
Comment 7 weskaggs 2004-06-18 21:51:08 UTC
There is actually a bug here.  Try pressing Ctrl+Alt to fix the Scale tool
aspect ratio, and then just moving the mouse back and forth a few times, from an
arbitrary starting point.  You will see the object steadily grow as you do it. 
When Ctrl alone is pressed, this does not happen.  (Seen in Gimp 2.1.0.)
Comment 8 weskaggs 2004-06-18 23:09:49 UTC
2004-06-18 Bill Skaggs  <weskaggs@primate.ucdavis.edu>

	* app/tools/gimpscaletool.c: changed algorithm for scaling when
	aspect ratio is constrained, to fix strange behavior described 
	in bug # 68106.

Comment 9 weskaggs 2004-06-19 18:42:18 UTC
2004-06-19 Bill Skaggs  <weskaggs@primate.ucdavis.edu>

	* app/tools/gimpscaletool.c: fixed my fix for bug # 68106, which 
	worked incorrectly for two of the control points.

Comment 10 weskaggs 2004-06-19 20:58:28 UTC
To finish with this bug report, I propose to change the scale tool options so
that instead of checkbuttons for "Keep Height" and "Keep Width", there is a
radiobutton with the options "Keep Height", "Keep Width", and "Keep Aspect".  If
there are no objections, I will go ahead and do this.  (I am aware that the way
the constraints are implemented makes it nontrivial.)
Comment 11 Sven Neumann 2004-06-20 08:34:32 UTC
Sounds like a reasonable change. What is your plan about the key binding for the
new option?
Comment 12 weskaggs 2004-06-20 17:01:41 UTC
I don't see any reason to change it from Ctrl-Alt,  which gives "keep aspect"
behavior already.  The key bindings here are fine, only the Tool Options
presentation is problematic.  With the current interface, the way to get a fixed
aspect ratio is to check both "keep height" and "keep width" at the same time. 
This is nonintuitive, even though it is explained in the tooltip for the
checkbuttons.
Comment 13 Sven Neumann 2004-06-20 22:32:00 UTC
Please go for it then.
Comment 14 weskaggs 2004-06-22 02:27:45 UTC
2004-06-21  Bill Skaggs  <weskaggs@primate.ucdavis.edu>

	* app/tools/gimptransformoptions.c: use radio buttons
	for constraint options.  Makes all options visible,
	should resolve bug #68106.