summaryrefslogtreecommitdiffstats
path: root/src/live_effects
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-04-06 17:39:38 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-04-06 17:39:38 +0000
commit22ded87a8ca58e0ff4400b2d4e76787f4ac22bd6 (patch)
treec0f22402e4fc5c5b2075b4e23d5ac0c34bc43422 /src/live_effects
parentfixing bug on closed paths (diff)
downloadinkscape-22ded87a8ca58e0ff4400b2d4e76787f4ac22bd6.tar.gz
inkscape-22ded87a8ca58e0ff4400b2d4e76787f4ac22bd6.zip
Fixed bug on closed paths, Clenup of pathinfo
(bzr r13645.1.77)
Diffstat (limited to 'src/live_effects')
-rw-r--r--src/live_effects/lpe-fillet-chamfer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/live_effects/lpe-fillet-chamfer.cpp b/src/live_effects/lpe-fillet-chamfer.cpp
index ac877c792..935e97ec9 100644
--- a/src/live_effects/lpe-fillet-chamfer.cpp
+++ b/src/live_effects/lpe-fillet-chamfer.cpp
@@ -426,8 +426,9 @@ void LPEFilletChamfer::doBeforeEffect(SPLPEItem const *lpeItem)
it->hidden = hide_knots;
++it;
}
- if (pointwise && c->get_segment_count() != sats.size()) {
- std::cout << "recalculta\n";
+ Pathinfo path_info(original_pathv);
+ size_t number_curves = path_info.numberCurves() + 1;
+ if (pointwise && number_curves != sats.size()) {
pointwise->recalculateForNewPwd2(pwd2_in, original_pathv);
} else {
pointwise = new Pointwise(pwd2_in, sats);