diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2017-08-07 09:20:55 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2017-08-07 09:20:55 +0000 |
| commit | ccfaafdc59f88d185fe5cd5c3a83bf6364c361a5 (patch) | |
| tree | d91c94d3de9ad09d62870e98113eb08d5ef346d6 /src/document.cpp | |
| parent | Add support for more than one style sheet in a document and imported style sh... (diff) | |
| download | inkscape-ccfaafdc59f88d185fe5cd5c3a83bf6364c361a5.tar.gz inkscape-ccfaafdc59f88d185fe5cd5c3a83bf6364c361a5.zip | |
Add support for imported style sheets via @import to Inkscape.
Diffstat (limited to 'src/document.cpp')
| -rw-r--r-- | src/document.cpp | 2 |
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; |
