summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 16a011a)
raw | patch | inline | side by side (parent: 16a011a)
author | speleo3 <speleo3@users.sourceforge.net> | |
Thu, 30 Apr 2009 08:36:59 +0000 (08:36 +0000) | ||
committer | speleo3 <speleo3@users.sourceforge.net> | |
Thu, 30 Apr 2009 08:36:59 +0000 (08:36 +0000) |
src/sp-object.cpp | patch | blob | history |
diff --git a/src/sp-object.cpp b/src/sp-object.cpp
index 1e7c5f2fe33b3d02c780a369bcc053f67a650e43..9037d45a976800f0685033e29d1343473c444a87 100644 (file)
--- a/src/sp-object.cpp
+++ b/src/sp-object.cpp
#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"
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