Comment 76 for bug 170049

Revision history for this message
Krzysztof Kosinski (tweenk) wrote :

The patch by vaifrax does not address the actual issue, which is that Inkscape internally uses 'desktop coordinates' in many places. These 'desktop coordinates' are hardcoded as an Y-grows-upwards system that starts at the bottom left corner of the page. A proper solution will be composed of two parts:

1. Remove the dependence on the desktop-to-document transformation from all code that deals with document elements rather than UI elements
2. Provide an UI to set an arbitrary zoom transform (e.g. scaling + translation) as the desktop-to-document transformation.

The patch from vaifrax does only 2 and only partially, since it does not actually change the desktop-to-document transformation, but tacks on an extra transformation between some of the UI controls and the desktop coordinates. This approach further complicates things and is untractable in the long run.

Furthermore, fixing this problem requires removing or significantly rewriting support for 3D boxes, which contain a fatal bug and write desktop coordinates to the SVG.