Code

Patch by theAdib which fixes 397075
authorscislac <scislac@users.sourceforge.net>
Tue, 15 Sep 2009 00:38:40 +0000 (00:38 +0000)
committerscislac <scislac@users.sourceforge.net>
Tue, 15 Sep 2009 00:38:40 +0000 (00:38 +0000)
src/filters/image.cpp

index 0002ef94c74a36b336aa2e40350a2027e5266fd3..d8e5a417f60d22e10999c88cd6135b621e7ce235 100644 (file)
@@ -184,11 +184,12 @@ sp_feImage_set(SPObject *object, unsigned int key, gchar const *value)
                     g_warning("SVG element URI was not found in the document while loading feImage");
                 }
             }
-            catch(const Inkscape::UnsupportedURIException & e)
+            // catches either MalformedURIException or UnsupportedURIException
+            catch(const Inkscape::BadURIException & e)
             {
                 feImage->from_element = false;
                 /* This occurs when using external image as the source */
-                //g_warning("caught Inkscape::UnsupportedURIException in sp_feImage_set");
+                //g_warning("caught Inkscape::BadURIException in sp_feImage_set");
                 break;
             }
             break;