summaryrefslogtreecommitdiffstats
path: root/src/sp-object.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2014-11-15 18:24:11 +0000
committerJon A. Cruz <jon@joncruz.org>2014-11-15 18:24:11 +0000
commit9094351b78c40b8ad59e86fcea438a27f666083b (patch)
tree45631e4ee8371b5a58450b95a4dd851c2bee3576 /src/sp-object.cpp
parentMacro cleanup of commented out code. (diff)
downloadinkscape-9094351b78c40b8ad59e86fcea438a27f666083b.tar.gz
inkscape-9094351b78c40b8ad59e86fcea438a27f666083b.zip
Purged SP_STYLE_ELEM/SP_IS_STYLE_ELEM macro abuse.
(bzr r13711)
Diffstat (limited to 'src/sp-object.cpp')
-rw-r--r--src/sp-object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-object.cpp b/src/sp-object.cpp
index fcff43aa5..569714bae 100644
--- a/src/sp-object.cpp
+++ b/src/sp-object.cpp
@@ -406,7 +406,7 @@ void SPObject::requestOrphanCollection() {
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
// do not remove style or script elements (Bug #276244)
- if (SP_IS_STYLE_ELEM(this)) {
+ if (dynamic_cast<SPStyleElem *>(this)) {
// leave it
} else if (SP_IS_SCRIPT(this)) {
// leave it