diff options
| author | Thomas Holder <speleo3@users.sourceforge.net> | 2009-04-30 08:36:59 +0000 |
|---|---|---|
| committer | speleo3 <speleo3@users.sourceforge.net> | 2009-04-30 08:36:59 +0000 |
| commit | 4cd181758364d06f89cf52f3c5cd20ffbf597cf7 (patch) | |
| tree | c57e522c4321a808559c9096edd028322eab4d15 /src | |
| parent | workaround for 'clip-path' and 'mask' given as style properties (bug #324849) (diff) | |
| download | inkscape-4cd181758364d06f89cf52f3c5cd20ffbf597cf7.tar.gz inkscape-4cd181758364d06f89cf52f3c5cd20ffbf597cf7.zip | |
requestOrphanCollection: do not remove (vacuum) style or script elements (Bug #276244)
(bzr r7799)
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp-object.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sp-object.cpp b/src/sp-object.cpp index 1e7c5f2fe..9037d45a9 100644 --- a/src/sp-object.cpp +++ b/src/sp-object.cpp @@ -42,6 +42,8 @@ #include "style.h" #include "sp-object-repr.h" #include "sp-root.h" +#include "sp-style-elem.h" +#include "sp-script.h" #include "streq.h" #include "strneq.h" #include "xml/repr.h" @@ -505,6 +507,13 @@ SPObject::setLabel(gchar const *label) { void SPObject::requestOrphanCollection() { g_return_if_fail(document != NULL); + + // do not remove style or script elements (Bug #276244) + if (SP_IS_STYLE_ELEM(this)) + return; + if (SP_IS_SCRIPT(this)) + return; + document->queueForOrphanCollection(this); /** \todo |
