Comment 4 for bug 1348382

Revision history for this message
Alvin Penner (apenner) wrote : Re: trunk: rectangle with repositioned rotation center scales if selected while document units are changed (rev >= 12554)

attached is a proposed patch for this bug.
This effectively disables all of the center-specific code in the routine SPGroup::scaleChildItemsRec().
I believe it fixes the original bug report.
I cannot tell if it fixes the crash or not, because I have not been able to reproduce the crash.

It does not fix Bug 1247799.
There is still a need for further work to be done in this area because the underlying problem is that the scaling rules for 'inkscape:transform-center-x' are not the same as for 'width', when they should be the same:
- if you scale a rectangle using the mouse then both the 'inkscape:transform-center-x' and 'width' will scale by the same factor, as expected.
- if you scale a rectangle by changing document units, then the numerical value of 'width' will change to the new units, but 'inkscape:transform-center-x' will remain unchanged in numerical value, which is inconsistent. See also https://bugs.launchpad.net/inkscape/+bug/1247799/comments/7