When you export to svg, the resulting file is not right. At the first glance, it seems empty. But it has the expected content reduced and reflected. After checking the source code of the resulting file, I realized that the problem is on the size of the canvas (the main object of the svg file). Then, I took a look at the source code of kturtle and found out the solution: just uncomment the line 270 of canvas.cpp I made some tests and everuthing seems to work fine! Reproducible: Always Steps to Reproduce: 1. Make some draw 2. Use the option Export to SVG 3. Open the SVG Actual Results: A reduced (really really small) and reflected version of the actual draw Expected Results: The actual draw.
I tested with master and can confirm the bug. with -# generator.setSize(_scene->sceneRect().size().toSize()); // Qt 4.5 + generator.setSize(_scene->sceneRect().size().toSize()); // Qt 4.5 in canvas.cpp:#270 it works
Git commit aa399f6fad3168c7ca73ecd01fc36012d1f48c01 by Christoph Feck. Committed on 23/01/2013 at 02:08. Pushed by cfeck into branch 'KDE/4.10'. Fix SVG export Some code was disabled, because it required Qt 4.5, which we long assume. Thanks Leonardo Barichello for spotting this! FIXED-IN: 4.10 M +3 -3 src/canvas.cpp http://commits.kde.org/kturtle/aa399f6fad3168c7ca73ecd01fc36012d1f48c01
Git commit db3e910e1ceeba30d4c5224953126a2a26549795 by Christoph Feck. Committed on 23/01/2013 at 02:08. Pushed by cfeck into branch 'master'. Fix SVG export Some code was disabled, because it required Qt 4.5, which we long assume. Thanks Leonardo Barichello for spotting this! FIXED-IN: 4.10 (cherry picked from commit aa399f6fad3168c7ca73ecd01fc36012d1f48c01) M +3 -3 src/canvas.cpp http://commits.kde.org/kturtle/db3e910e1ceeba30d4c5224953126a2a26549795