summaryrefslogtreecommitdiffstats
path: root/src/style.cpp
diff options
context:
space:
mode:
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 1cece6dbd..c83b19230 100644
--- a/src/style.cpp
+++ b/src/style.cpp
@@ -685,7 +685,9 @@ SPStyle::readIfUnset(SPAttributeEnum id, gchar const *val, SPStyleSrc const &sou
g_warning("attribute 'clip-path' given as CSS");
//XML Tree being directly used here.
- this->object->getRepr()->setAttribute("clip-path", val);
+ if (object) {
+ object->getRepr()->setAttribute("clip-path", val);
+ }
return;
case SP_PROP_MASK:
/** \todo
@@ -694,7 +696,9 @@ SPStyle::readIfUnset(SPAttributeEnum id, gchar const *val, SPStyleSrc const &sou
g_warning("attribute 'mask' given as CSS");
//XML Tree being directly used here.
- this->object->getRepr()->setAttribute("mask", val);
+ if (object) {
+ object->getRepr()->setAttribute("mask", val);
+ }
return;
case SP_PROP_FILTER:
if( !filter.inherit ) filter.readIfUnset( val, source );