summaryrefslogtreecommitdiffstats
path: root/src/style.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-04-14 05:32:18 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-04-14 05:32:18 +0000
commitabba673a11543b35eea417001aa1f365c34f4457 (patch)
tree94599f3f5b07e681a522ecbc4ea6615fd7eb2f00 /src/style.cpp
parentplease dont forget to update Makefile_insert\! (diff)
downloadinkscape-abba673a11543b35eea417001aa1f365c34f4457.tar.gz
inkscape-abba673a11543b35eea417001aa1f365c34f4457.zip
fix 216898
(bzr r5436)
Diffstat (limited to 'src/style.cpp')
-rw-r--r--src/style.cpp8
1 files 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