From 74f64c6feb9b255db8aadba53491d7fa3cbd9509 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Mon, 14 Apr 2008 05:32:18 +0000 Subject: [PATCH] fix 216898 --- src/style.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/style.cpp b/src/style.cpp index 97781737e..956727873 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -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 -- 2.30.2