Skip to content

Commit

Permalink
Define the Inkscape SVG namespace
Browse files Browse the repository at this point in the history
Otherwise the generated SVG files don't work in tools other than
Inkscape.
  • Loading branch information
Willem3141 committed Oct 8, 2024
1 parent e3a7ed5 commit 573695f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cartocrow/renderer/svg_renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ SvgRenderer::SvgRenderer(const std::shared_ptr<GeometryPainting>& painting, cons
void SvgRenderer::save(const std::filesystem::path& file) {
std::locale::global(std::locale("C"));
m_out.open(file);
m_out << "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n";
m_out << "<svg version=\"1.1\" xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns=\"http://www.w3.org/2000/svg\">\n";
m_out << "<defs><circle id=\"vertex\" cx=\"0\" cy=\"0\" r=\"4\"/></defs>\n";

for (auto painting : m_paintings) {
Expand Down

0 comments on commit 573695f

Please sign in to comment.