summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-fillet-chamfer.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-05-21 21:06:15 +0000
committerjabiertxof <info@marker.es>2016-05-21 21:06:15 +0000
commitc511141b70995ca7295df4ae244d7cc626f6ab73 (patch)
tree3e49958e4700d1f91755e25e69aefc626966a922 /src/live_effects/lpe-fillet-chamfer.cpp
parentupdate to trunk (diff)
downloadinkscape-c511141b70995ca7295df4ae244d7cc626f6ab73.tar.gz
inkscape-c511141b70995ca7295df4ae244d7cc626f6ab73.zip
Update to refresh knots
(bzr r13645.1.139)
Diffstat (limited to 'src/live_effects/lpe-fillet-chamfer.cpp')
-rw-r--r--src/live_effects/lpe-fillet-chamfer.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/live_effects/lpe-fillet-chamfer.cpp b/src/live_effects/lpe-fillet-chamfer.cpp
index 9c633ea57..fc31aa447 100644
--- a/src/live_effects/lpe-fillet-chamfer.cpp
+++ b/src/live_effects/lpe-fillet-chamfer.cpp
@@ -239,8 +239,11 @@ void LPEFilletChamfer::inverseChamfer()
void LPEFilletChamfer::refreshKnots()
{
- if (satellites_param.knoth) {
- satellites_param.knoth->update_knots();
+ //Find another way to update knots satellites_param.knoth->update_knots(); do the thing
+ //but not updat the knot index on node delete
+ if (tools_isactive(desktop, TOOLS_NODES)) {
+ tools_switch(desktop, TOOLS_SELECT);
+ tools_switch(desktop, TOOLS_NODES);
}
}
@@ -413,13 +416,12 @@ void LPEFilletChamfer::doBeforeEffect(SPLPEItem const *lpeItem)
satellite.setHasMirror(mirror_knots);
satellite.setHidden(hide_knots);
pointwise.recalculateForNewPathVector(pathv, satellite);
- satellites_param.setPointwise(pointwise);
} else {
pointwise.setPathVector(pathv);
pointwise.setSatellites(satellites);
- satellites_param.setPointwise(pointwise);
- refreshKnots();
}
+ satellites_param.setPointwise(pointwise);
+ refreshKnots();
} else {
g_warning("LPE Fillet can only be applied to shapes (not groups).");
}