diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2019-04-30 20:40:33 +0000 |
|---|---|---|
| committer | Diederik van Lierop <mail@diedenrezi.nl> | 2019-04-30 20:40:33 +0000 |
| commit | d137944b06575b9e79d0a3e79a3e5f5b8f6665e2 (patch) | |
| tree | 6017a86cc0040ca9d7615c879036bd320f6e5de7 /src/style.cpp | |
| parent | Fix disappearing and antialiasing of grid lines (diff) | |
| parent | Set spacing in About Dialog (diff) | |
| download | inkscape-d137944b06575b9e79d0a3e79a3e5f5b8f6665e2.tar.gz inkscape-d137944b06575b9e79d0a3e79a3e5f5b8f6665e2.zip | |
Merge branch 'master' of gitlab.com:inkscape/inkscape
Diffstat (limited to 'src/style.cpp')
| -rw-r--r-- | src/style.cpp | 8 |
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 ); |
