summaryrefslogtreecommitdiffstats
path: root/src/sp-object.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2014-11-15 18:37:38 +0000
committerJon A. Cruz <jon@joncruz.org>2014-11-15 18:37:38 +0000
commit692ee3551c1a101b16134b0b446ab98231fa4d1f (patch)
tree5b6f59bc2aaab32513cb67042ce5b4be5e90dd2b /src/sp-object.cpp
parentPurged SP_STYLE_ELEM/SP_IS_STYLE_ELEM macro abuse. (diff)
downloadinkscape-692ee3551c1a101b16134b0b446ab98231fa4d1f.tar.gz
inkscape-692ee3551c1a101b16134b0b446ab98231fa4d1f.zip
Purged GTKish macros SP_SCRIPT/SP_IS_SCRIPT.
(bzr r13712)
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 569714bae..024fce85a 100644
--- a/src/sp-object.cpp
+++ b/src/sp-object.cpp
@@ -408,7 +408,7 @@ void SPObject::requestOrphanCollection() {
// do not remove style or script elements (Bug #276244)
if (dynamic_cast<SPStyleElem *>(this)) {
// leave it
- } else if (SP_IS_SCRIPT(this)) {
+ } else if (dynamic_cast<SPScript *>(this)) {
// leave it
} else if ((! prefs->getBool("/options/cleanupswatches/value", false)) && SP_IS_PAINT_SERVER(this) && static_cast<SPPaintServer*>(this)->isSwatch() ) {