Code

fix 216898
authorbuliabyak <buliabyak@users.sourceforge.net>
Mon, 14 Apr 2008 05:32:18 +0000 (05:32 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Mon, 14 Apr 2008 05:32:18 +0000 (05:32 +0000)
src/style.cpp

index 97781737ec7cf56f97c67d139339544c38071c8c..956727873d98bf5b0c70c75b7cea93e5362da077 100644 (file)
@@ -2108,8 +2108,12 @@ sp_style_set_ipaint_to_uri(SPStyle *style, SPIPaint *paint, const Inkscape::URI
 static void
 sp_style_set_ipaint_to_uri_string (SPStyle *style, SPIPaint *paint, const gchar *uri)
 {
-    const Inkscape::URI IURI(uri);
-    sp_style_set_ipaint_to_uri(style, paint, &IURI, style->document);
+    try {
+        const Inkscape::URI IURI(uri);
+        sp_style_set_ipaint_to_uri(style, paint, &IURI, style->document);
+    } catch (...) {
+        g_warning("URI failed to parse: %s", uri);
+    }
 }
 
 void