summaryrefslogtreecommitdiffstats
path: root/src/sp-object.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-11-15 19:08:00 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-11-15 19:08:00 +0000
commit11fd7a608db9b2133bb0fc067545557fedfd2643 (patch)
treeb9a97dd449e410b7a6c0c2f496204cac0730338b /src/sp-object.cpp
parentAdd vertical and horizontal modes (diff)
parentPurged GTKish SP_IS_RECT_CONTEXT/SP_RECT_CONTEXT macros. (diff)
downloadinkscape-11fd7a608db9b2133bb0fc067545557fedfd2643.tar.gz
inkscape-11fd7a608db9b2133bb0fc067545557fedfd2643.zip
update to trunk
(bzr r13682.1.12)
Diffstat (limited to 'src/sp-object.cpp')
-rw-r--r--src/sp-object.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-object.cpp b/src/sp-object.cpp
index fcff43aa5..024fce85a 100644
--- a/src/sp-object.cpp
+++ b/src/sp-object.cpp
@@ -406,9 +406,9 @@ 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)) {
+ } 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() ) {