summaryrefslogtreecommitdiffstats
path: root/src/sp-object.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-05-16 16:29:10 +0000
committerJabiertxo Arraiza Zenotz <jtx@jtx.marker.es>2013-05-16 16:29:10 +0000
commitb0d75ca0f9aea3c7652042d1a6300bbfdf1391e8 (patch)
treefe0c3c3eb28289ad60a96ab65ff6954576834ddc /src/sp-object.cpp
parentChange only selected nodes (diff)
parentWin32. More include fixes for glibmm 2.36 (file dialog). (diff)
downloadinkscape-b0d75ca0f9aea3c7652042d1a6300bbfdf1391e8.tar.gz
inkscape-b0d75ca0f9aea3c7652042d1a6300bbfdf1391e8.zip
Update to trunk
(bzr r11950.1.114)
Diffstat (limited to 'src/sp-object.cpp')
-rw-r--r--src/sp-object.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sp-object.cpp b/src/sp-object.cpp
index 4d2a5a709..b5c93e792 100644
--- a/src/sp-object.cpp
+++ b/src/sp-object.cpp
@@ -455,13 +455,15 @@ void SPObject::setLabel(gchar const *label)
void SPObject::requestOrphanCollection() {
g_return_if_fail(document != NULL);
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
// do not remove style or script elements (Bug #276244)
if (SP_IS_STYLE_ELEM(this)) {
// leave it
} else if (SP_IS_SCRIPT(this)) {
// leave it
- } else if (SP_IS_PAINT_SERVER(this) && static_cast<SPPaintServer*>(this)->isSwatch() ) {
+
+ } else if ((! prefs->getBool("/options/cleanupswatches/value", false)) && SP_IS_PAINT_SERVER(this) && static_cast<SPPaintServer*>(this)->isSwatch() ) {
// leave it
} else if (IS_COLORPROFILE(this)) {
// leave it