summaryrefslogtreecommitdiffstats
path: root/src/sp-lpe-item.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebrony@gmail.com>2014-06-19 02:32:07 +0000
committerLiam P. White <inkscapebrony@gmail.com>2014-06-19 02:32:07 +0000
commitf164dc6009f644939ba5fb09503fe0e35f1d4aae (patch)
tree281c32b52168c049ce35d0f459413c28aa92a7b1 /src/sp-lpe-item.cpp
parentAdd clip group option from Ponyscape (diff)
parentFix make check (diff)
downloadinkscape-f164dc6009f644939ba5fb09503fe0e35f1d4aae.tar.gz
inkscape-f164dc6009f644939ba5fb09503fe0e35f1d4aae.zip
Update to experimental r13404
(bzr r13090.1.84)
Diffstat (limited to 'src/sp-lpe-item.cpp')
-rw-r--r--src/sp-lpe-item.cpp28
1 files changed, 4 insertions, 24 deletions
diff --git a/src/sp-lpe-item.cpp b/src/sp-lpe-item.cpp
index 7780e1679..22726f236 100644
--- a/src/sp-lpe-item.cpp
+++ b/src/sp-lpe-item.cpp
@@ -50,8 +50,6 @@
#include <algorithm>
/* LPEItem base class */
-static void sp_lpe_item_enable_path_effects(SPLPEItem *lpeitem, bool enable);
-
static void lpeobject_ref_modified(SPObject *href, guint flags, SPLPEItem *lpeitem);
static void sp_lpe_item_create_original_path_recursive(SPLPEItem *lpeitem);
@@ -115,7 +113,7 @@ void SPLPEItem::set(unsigned int key, gchar const* value) {
this->current_path_effect = NULL;
// Disable the path effects while populating the LPE list
- sp_lpe_item_enable_path_effects(this, false);
+ enablePathEffects(false);
// disconnect all modified listeners:
for ( std::list<sigc::connection>::iterator mod_it = this->lpe_modified_connection_list->begin();
@@ -168,7 +166,7 @@ void SPLPEItem::set(unsigned int key, gchar const* value) {
}
}
- sp_lpe_item_enable_path_effects(this, true);
+ enablePathEffects(true);
}
break;
@@ -412,7 +410,7 @@ void SPLPEItem::addPathEffect(gchar *value, bool reset)
sp_lpe_item_update_patheffect(this, false, true);
// Disable the path effects while preparing the new lpe
- sp_lpe_item_enable_path_effects(this, false);
+ enablePathEffects(false);
// Add the new reference to the list of LPE references
HRefList hreflist;
@@ -449,7 +447,7 @@ void SPLPEItem::addPathEffect(gchar *value, bool reset)
}
//Enable the path effects now that everything is ready to apply the new path effect
- sp_lpe_item_enable_path_effects(this, true);
+ enablePathEffects(true);
// Apply the path effect
sp_lpe_item_update_patheffect(this, true, true);
@@ -964,24 +962,6 @@ bool SPLPEItem::forkPathEffectsIfNecessary(unsigned int nr_of_allowed_users)
return forked;
}
-// Enable or disable the path effects of the item.
-// The counter allows nested calls
-static void sp_lpe_item_enable_path_effects(SPLPEItem *lpeitem, bool enable)
-{
- if (enable) {
- lpeitem->path_effects_enabled++;
- }
- else {
- lpeitem->path_effects_enabled--;
- }
-}
-
-// Are the path effects enabled on this item ?
-bool SPLPEItem::pathEffectsEnabled() const
-{
- return path_effects_enabled > 0;
-}
-
/*
Local Variables:
mode:c++