bug for 'lock aspect ratio'

Bug #943282 reported by Kevlar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ella-renaissance
Fix Released
High
Unassigned

Bug Description

This bug, alas, affects not only Lubuntu (Bug 943269) but all distributions ; how to reproduct it :
1- draw anything (box, ellipse) with 'aspect ratio' locked (<CTRL> key)
2- release 'aspect ratio' key
3- select the newly drawed object, and by clicking, switch to "resizing mode".
4- hit the <CTRL> key to activate "aspect ratio locked", and resize ;
You will see 2 things :
1- the aspect raio isn't work for the object, only for the bounding box around the object
2- the bounding box isn't correctly computed.

Revision history for this message
Kevlar (amiluc-bis) wrote :

after additionnal tests, this bug is specific for "ellipses" objects (during resizing, we have negative radius computed !)

Revision history for this message
Louis Moureaux (louis-m-deactivatedaccount) wrote :

This bug seems to appear randomly when resizing to a smaller then a larger size, with both rectangles and ellipses. Resulting shape can be larger or smaller than needed. I've never had this bug with horizontal size, only vertical size is wrong.

Revision history for this message
Kevlar (amiluc-bis) wrote :

Found a fix : the bug is produced by GooCanvas function like this :
" g_object_get(item,"center_x",&cx,"center_y",&cy,"radius_x",&rx,"radius_y",&ry,NULL); "

We get NEGATIVE values for ry ! (i.e. the ellipse's radius for y coordinates)

So I've added some code to get only POSITIVE radius.

Kevlar (amiluc-bis)
Changed in ella-renaissance:
status: New → Fix Committed
Revision history for this message
Kevlar (amiluc-bis) wrote :

fixed, in revision #101, released

Changed in ella-renaissance:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.