summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2017-08-07 09:20:55 +0000
committerTavmjong Bah <tavmjong@free.fr>2017-08-07 09:20:55 +0000
commitccfaafdc59f88d185fe5cd5c3a83bf6364c361a5 (patch)
treed91c94d3de9ad09d62870e98113eb08d5ef346d6 /src/document.cpp
parentAdd support for more than one style sheet in a document and imported style sh... (diff)
downloadinkscape-ccfaafdc59f88d185fe5cd5c3a83bf6364c361a5.tar.gz
inkscape-ccfaafdc59f88d185fe5cd5c3a83bf6364c361a5.zip
Add support for imported style sheets via @import to Inkscape.
Diffstat (limited to '')
-rw-r--r--src/document.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/document.cpp b/src/document.cpp
index 3a7d4408f..d9c709626 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -96,6 +96,7 @@ SPDocument::SPDocument() :
rroot(NULL),
root(NULL),
style_cascade(cr_cascade_new(NULL, NULL, NULL)),
+ style_sheet(NULL),
uri(NULL),
base(NULL),
name(NULL),
@@ -177,6 +178,7 @@ SPDocument::~SPDocument() {
priv->resources.clear();
}
+ // This also destroys all attached stylesheets
cr_cascade_unref(style_cascade);
style_cascade = NULL;