Comment 7 for bug 1247799

Revision history for this message
Alvin Penner (apenner) wrote :

- running Windows XP, Inkscape rev 13470
- there is a scaling problem here that exists independently of the copy/paste operation, and will probably need to be fixed before the copy/paste can be fixed. In a rectangle, the parameters inkscape:transform-center-x/y do not scale the same as the parameters width, height, x, y when the document units are changed.

attached is the file rect_px.svg. It uses px as document units. Now load the file, convert document units to mm, and save it as rect_mm.svg. Now compare the two rectangles.

In rect_px.svg we have:
    <rect
       width="270"
       height="110"
       x="70.499992"
       y="181.86218"
       inkscape:transform-center-x="135"
       inkscape:transform-center-y="55" />

In rect_mm.svg we have:
    <rect
       width="76.200005"
       height="31.044445"
       x="19.896666"
       y="51.32555"
       inkscape:transform-center-x="134.99999"
       inkscape:transform-center-y="54.999998" />

The parameters x, y, width, height have been scaled by a factor of .2822 as expected. The parameters inkscape:transform-center-x/y are unchanged, which is inconsistent. It would probably simplify the logic to make sure that all parameters are scaled at the same time. The problem with these 2 parameters is that they are not actually present if they are at the default value, so it is easy to overlook them.