* Add more properties to the <svg> tag, version and XML namespaces. This should

improve compatibility of the exported SVG files.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29097 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2009-01-31 10:09:14 +00:00
parent b8d65a49d8
commit d5e24b12c1

View File

@ -77,9 +77,13 @@ SVGExporter::Export(const Icon* icon, BPositionIO* stream)
// image size
if (ret >= B_OK) {
helper << "<svg width=\"" << 64 << "\""
helper << "<svg version=\"1.1\" width=\"" << 64 << "\""
<< " height=\"" << 64 << "\""
<< " color-interpolation=\"linearRGB\">\n";
<< " color-interpolation=\"linearRGB\"\n"
<< " xmlns:svg=\"http://www.w3.org/2000/svg\""
// Should be needed when exporting inline images:
// << " xmlns:xlink=\"http://www.w3.org/1999/xlink\""
<< " xmlns=\"http://www.w3.org/2000/svg\">\n";
ret = write_line(stream, helper);
}