X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fextension%2Fimplementation%2Fscript.cpp;h=5975d6d24934d678f8aeaaf500e6e1a97a547fc5;hb=ac248d5f76a334cd01269ef995c00dba1ba28ed8;hp=908ac23b7668385b75ecdd0be28e7ce56cdd5035;hpb=4f2240d49e70595042917b9df188dc4323a71c1e;p=inkscape.git diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp index 908ac23b7..5975d6d24 100644 --- a/src/extension/implementation/script.cpp +++ b/src/extension/implementation/script.cpp @@ -818,8 +818,6 @@ Script::copy_doc (Inkscape::XML::Node * oldroot, Inkscape::XML::Node * newroot) child = child->next()) { if (!strcmp("sodipodi:namedview", child->name())) continue; - if (!strcmp("svg:defs", child->name())) - continue; delete_list.push_back(child); } for (unsigned int i = 0; i < delete_list.size(); i++) @@ -830,8 +828,6 @@ Script::copy_doc (Inkscape::XML::Node * oldroot, Inkscape::XML::Node * newroot) child = child->next()) { if (!strcmp("sodipodi:namedview", child->name())) continue; - if (!strcmp("svg:defs", child->name())) - continue; oldroot->appendChild(child->duplicate()); } @@ -989,7 +985,7 @@ Script::execute (const Glib::ustring &in_command, } else if (errno == ECHILD) { perror("Extension::Script: Could not obtain child status for pclose\n"); } else { - if (errorFile != NULL) { + if (!errorFile.empty()) { checkStderr(errorFile, Gtk::MESSAGE_ERROR, _("Inkscape has received an error from the script that it called. " "The text returned with the error is included below. "