On Fri, 14 Apr 2006 15:13:37 -0400, "bulia byak" <buliabyak@...400...> wrote:
On 4/14/06, Bob Jamison <rwjj@...127...> wrote:
Bob Jamison wrote:
Also note that the coordinates were flipped in the Y-direction, so I fixed it manually.
I fixed this, I think. I think the general trick of:
- flipping in Y
- shifting by document height
- scaling to ODF's cm-units
...will work in general.
Yes, but please do not write new code implementing this! Exactly this flipping is done by matrix_to/from_desktop in sp-item.cpp, please use it. I've always tried to minimize the number of places where this flipping is done, so it will be easier to eliminate it one day.
I think (hope) this is different, though?
i.e. if I understand correctly, the ODF coordinate system is flipped relative to the SVG one. It happens to correspond to the transformation we do for desktop coordinates right now, but we shouldn't assume forever that ODF coordinates correspond to our desktop coordinates, if we still plan on fixing our own coordinate system to match SVG's one day...
-mental