Code

OCAL. Fix for Bug #638844 (Errors printed to console if openclipart search fails).
authorJazzyNico <nicoduf@yahoo.fr>
Mon, 31 Jan 2011 21:29:13 +0000 (22:29 +0100)
committerJazzyNico <nicoduf@yahoo.fr>
Mon, 31 Jan 2011 21:29:13 +0000 (22:29 +0100)
src/ui/dialog/ocaldialogs.cpp

index d3887b1ca5c0e7928193025a1287b6d8a8defca6..2ae7d6989f05a76ed3ad5b386402d8f31ffcaee6 100644 (file)
@@ -470,7 +470,7 @@ void FileImportFromOCALDialog::searchTagEntryChangedCallback()
 
     doc = xmlReadIO ((xmlInputReadCallback) vfs_read_callback,
         (xmlInputCloseCallback) gnome_vfs_close, from_handle, uri.c_str(), NULL,
-        XML_PARSE_RECOVER);
+        XML_PARSE_RECOVER + XML_PARSE_NOWARNING + XML_PARSE_NOERROR);
     if (doc == NULL) {
         sp_ui_error_dialog(_("Server supplied malformed Clip Art feed"));
         g_warning("Failed to parse %s\n", uri.c_str());