index 908ac23b7668385b75ecdd0be28e7ce56cdd5035..5975d6d24934d678f8aeaaf500e6e1a97a547fc5 100644 (file)
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++)
child = child->next()) {
if (!strcmp("sodipodi:namedview", child->name()))
continue;
- if (!strcmp("svg:defs", child->name()))
- continue;
oldroot->appendChild(child->duplicate());
}
} 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. "