![](https://secure.gravatar.com/avatar/b47d036b8f12e712f4960ba78404c3b2.jpg?s=120&d=mm&r=g)
2010/3/28 Abhishek Sharma <spyzer.abhishek0@...400...>:
So this neat trick actually has to do with translations and efficiency, now I get it. May some one also kindly specify the reason I was suggested to modify the matrix to an identity one. I mean how would changing _doc2dt to an identity matrix help in the bug reduction(I am asking this not to comment or question anybody, I am just unaware...).
There are two coordinate spaces: the document space, which corresponds to the SVG specification, and the desktop space, which is the same except it has the Y axis flipped, and is used to position items on the canvas. What we want is to change the desktop space to be identical to the desktop space. _doc2dt determines the mapping between the document space and desktop space, so we need to change it to the identity matrix to make those two spaces identical.
Regards, Krzysztof