summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 69c1d23)
raw | patch | inline | side by side (parent: 69c1d23)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 27 Jun 2007 20:26:29 +0000 (20:26 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 27 Jun 2007 20:26:29 +0000 (20:26 +0000) |
src/style.cpp | patch | blob | history |
diff --git a/src/style.cpp b/src/style.cpp
index 699d950541e723858dc4d5cfc0f44c2e5da1b3ef..fbd472129516c0750cb2dab0d664e2ecc62988a2 100644 (file)
--- a/src/style.cpp
+++ b/src/style.cpp
if (style->filter.href && style->filter.href->getObject())
style->filter.href->detach();
- try {
- style->filter.href->attach(*parent->href->getURI());
- } catch (Inkscape::BadURIException &e) {
- g_warning("%s", e.what());
- style->filter.href->detach();
+ if (style->filter.href && parent->href) {
+ try {
+ style->filter.href->attach(*parent->href->getURI());
+ } catch (Inkscape::BadURIException &e) {
+ g_warning("%s", e.what());
+ style->filter.href->detach();
+ }
}
}
{
if (val->inherit) {
return g_snprintf(p, len, "%s:inherit;", key);
- } else if (val->href->getURI()) {
+ } else if (val->href && val->href->getURI()) {
return g_snprintf(p, len, "%s:url(%s);", key, val->href->getURI()->toString());
}
}