GNOME Bugzilla – Bug 348807
New rectangle selection tool does not allow resizing along the vertical.
Last modified: 2006-08-10 07:00:34 UTC
Please describe the problem: When the aspect ratio is fixed in the new rectangle selection tool then trying to resize the selected area along the vertical is having little effect unless you move the mouse in very fast movements. Steps to reproduce: 1. Select a rectangle 2. fix the Aspect to whatever you like (I tried 0.6666, 1.0 and 1.5) 3. try to resize the area by grabbing the right hand delimiter line of the area. Actual results: The resize seems to be quite reluctant, mouse cursor and delimiter line get asynchronous quite quickly. Expected results: I'd expect the same behaviour as if I tried to resize by using the bottom delimiter line which tracks the mouse movement, thereby resizing the horizontal size as well as dictated by the aspect ratio. Does this happen every time? Yes. Other information:
Created attachment 69698 [details] [review] Preliminiary patch to calculate vertical size on the base of horizontal resizing and desired aspect ratio. It's preliminary as the whole code seems to always factor in both x and y resizing even when only one direction is in fact being altered.
Created attachment 69847 [details] [review] Updated patch, corrects the positioning and resizing of the corners as well.
Simple fix for the horizontal movement problem. Thanks to Karl Günter Wünsch for working and discussing on this issue, and we still need to improve the corners' behaviour (old rectangle tool had a better behaviour, where the mouse cursor always stayed on one border). 2006-07-30 Karine Delvare <edhel@gimp.org> * app/tools/gimprectangletool.c: check zero division in the right place. Fixes bug #348807.
Setting milestone accordingly. Has the attached patch been committed?
The attached patch has been committed but since has been superseded by the fixes for Bug #349337...
*** Bug 350698 has been marked as a duplicate of this bug. ***