Version: 0.5.9 (using Devel) Installed from: Compiled sources OS: Linux Steps to Reproduce: 1. Make a picture. 2. Save it. 3. Resize the window. 4. Reload the file. I wrote a patch to fix this by making the scene constantly at the size of the SVG and resizing the view instead. This also simplifies the code considerably. The files are saved relative to the SVG's original dimensions. To avoid breaking the old files, I bumped the save version, and if an old file is loaded, the positions are scaled, mimicking the old behavior.
Created attachment 24248 [details] keep the scene at a constant scale
Thanks a lot, but the patch breaks the "do not select items that are placed in the view and you click on transparent pixels of their boundingbox", namely by using itemAt() of the view instead the one of the scene and by removing contains() in ToDraw. If you fix this i'll be happy to integrate your patch :-)
Created attachment 24330 [details] revised patch Hehe. Oops. I didn't notice that contains() managed more than just bounding. :-) Why does the view's itemAt not do what the view's does? It seems a bit odd. Revised patch attached.
SVN commit 797408 by aacid: Patch from David Benjamin to fix loading only workng if you have the same size you had when saving (*ouch*) Along with it comes some code refactoring that has the nice side effect of not needing the Qt4.4 ifdef anymore BUGS: 160485 M +50 -79 playground.cpp M +1 -2 playground.h M +26 -41 todraw.cpp M +8 -3 todraw.h WebSVN link: http://websvn.kde.org/?view=rev&revision=797408