summaryrefslogtreecommitdiffstats
path: root/src/knotholder.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-11-15 19:07:31 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-11-15 19:07:31 +0000
commit124e1974a8eff0d45063c618266db15cd8b113cb (patch)
tree2e2f05d6d902e9ff3bff930e34d2b60e34131275 /src/knotholder.cpp
parentignore this commit (diff)
parentMacro cleanup of commented out code. (diff)
downloadinkscape-124e1974a8eff0d45063c618266db15cd8b113cb.tar.gz
inkscape-124e1974a8eff0d45063c618266db15cd8b113cb.zip
Add vertical and horizontal modes
(bzr r13682.1.11)
Diffstat (limited to 'src/knotholder.cpp')
-rw-r--r--src/knotholder.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/knotholder.cpp b/src/knotholder.cpp
index f46daa09e..28f6f5748 100644
--- a/src/knotholder.cpp
+++ b/src/knotholder.cpp
@@ -69,6 +69,12 @@ KnotHolder::KnotHolder(SPDesktop *desktop, SPItem *item, SPKnotHolderReleasedFun
}
KnotHolder::~KnotHolder() {
+ if(SP_IS_LPE_ITEM(item)){
+ Inkscape::LivePathEffect::Effect *effect = SP_LPE_ITEM(item)->getCurrentLPE();
+ if(effect){
+ effect->removeHandles();
+ }
+ }
sp_object_unref(item);
for (std::list<KnotHolderEntity *>::iterator i = entity.begin(); i != entity.end(); ++i)