Skip to content

Commit

Permalink
reenable inkscape detection in svgfix
Browse files Browse the repository at this point in the history
  • Loading branch information
kallaballa committed Dec 1, 2014
1 parent 5c18c8a commit 8697ca8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ctrl-cut/svg/SvgFix.cpp
Expand Up @@ -25,8 +25,7 @@ class SvgSax : public SaxParser
}

virtual void on_comment(const Glib::ustring& text){
//inkscape preserves the generator comment, so we can't use this anymore
// svgFix.findGenerator(text);
svgFix.findGenerator(text);
}

virtual void on_cdata_block(const Glib::ustring& text) {
Expand Down Expand Up @@ -64,7 +63,7 @@ void SvgFix::writeSvg(const Glib::ustring& name, const SaxParser::AttributeList&


void SvgFix::findGenerator(const Glib::ustring& text) {
if(text.find("Inkscape") != string::npos) {
if(text.find("Created with Inkscape") != string::npos) {
this->generator = SvgFix::Inkscape;
// Inkscape uses 90dpi as default resolution for the coordinates
// in the svg but doesn't use a viewbox to make it scale correctly.
Expand Down

0 comments on commit 8697ca8

Please sign in to comment.