Version: (using KDE 4.3.2) OS: Linux Installed from: Mandriva RPMs Konqueror does not show lines in valid SVG image files, such as those created by line-drawing in Inkscape. Take this example. It's an SVG image file with two parallel lines, one red and one blue, across a green background: <svg xmlns="http://www.w3.org/2000/svg" width="100" height="60"> <g> <rect width="60" height="60" x="20" y="0" fill="yellowgreen" /> <path d="m 0 40 100 0" stroke="red" stroke-width="10" /> <path d="m 0 20 l 100 0" stroke="blue" stroke-width="10" /> </g> </svg> Konqueror fails to show the red line. That's because it seems to require that the lower-case-L "lineto" be put in explicitly, as is done with the blue line, but instead it's treating the second pair of coordinates as if they were a repetition of the lower-case-M "moveto" command, and thus no line is shown. However, the last line in section 8.3.2 of the SVG spec says: "If a moveto is followed by multiple pairs of coordinates, the subsequent pairs are treated as implicit lineto commands", therefore the line should have been shown. The SVG spec: http://www.w3.org/TR/SVG/paths.html#PathDataMovetoCommands My SVG example: http://anvil.pwp.blueyonder.co.uk/images/test1.svg How it looks, incorrectly, in Konqueror: http://anvil.pwp.blueyonder.co.uk/images/test1kn.png How it looks, correctly, in Firefox and others: http://anvil.pwp.blueyonder.co.uk/images/test1ff.png
Thanks for the great report... but your testcase actually passes for me, on 4.3.3.
After posting that, I see that Konqueror renders it OK in web-browser mode, but not in file-manager mode. Try downloading the test case onto hard drive, then view it there with Konqueror. http://anvil.pwp.blueyonder.co.uk/images/test1.svg
Works fine either way for me; could you perhaps check the viewer in use under view -> view mode?
This renders it incorrectly: view -> view mode -> Svg Part This renders it correctly: view -> view mode -> KHTML
The SVG part is Qt's builtin SVG viewer... I guess I will need to test whether it's still broken in Qt4.6.0....
Works with KDE 4.6.4 and Qt 4.7.3