On 2-4-2013 15:45, Krzysztof KosiĆski wrote:
2013/3/31 Johan Engelen <jbc.engelen@...2592...>:
Hi all, We have to change the coordinate system used by grids in XML. I think it is the only thing left that has the inverted coord-system in XML.
The second big offender is 3D box.
I changed it in the guides improvements branch, and it works fine. The only problem is: grids of old files will show wrong, they are not "upgraded" to the new format, because there is (yet) no way to distinguish old-style from new-style grids. How should I go about this? It is relatively easy to fix it manually for each file, but I understand it is an annoyance.
Some ideas: a) Use a different element name for the new grids, for instance inkscape:grid2. b) Add some kind of attribute, e.g. version="1" or coordinate-system="document" on the new grid element.
a) Definitely the easiest choice. This is effectively what we did for the new guides too. pre-0.49 will not be able to see grids and guides.
b) More flexible solution. Can preserve forward-compatibility for pre-0.49. But much more work.
Just now I remember that the coord change for guides and grids now breaks all UI spinboxes that show the y-coordinate of the grid origin / guides. So additional work is needed to clean that up. Because we have a GSoC student interested in improving the guide UI, I am thinking about keeping the grid/guide stuff in the branch for now and have the student work on that.
Cheers, Johan