summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-07-30 00:36:53 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-07-30 00:36:53 +0000
commitebdfe1ab7d7a3b73346885c635e98b2021921010 (patch)
treeb71398870301d070432a40c328fb0d57d2407730 /src
parentadd last applied branch - mode to strokes on pen/pencil (diff)
downloadinkscape-ebdfe1ab7d7a3b73346885c635e98b2021921010.tar.gz
inkscape-ebdfe1ab7d7a3b73346885c635e98b2021921010.zip
Fix a bug pointed by su_v on fillet-chamfer open paths
(bzr r13341.1.109)
Diffstat (limited to 'src')
-rw-r--r--src/live_effects/lpe-fillet-chamfer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/live_effects/lpe-fillet-chamfer.cpp b/src/live_effects/lpe-fillet-chamfer.cpp
index eae37ad36..1dffba1bf 100644
--- a/src/live_effects/lpe-fillet-chamfer.cpp
+++ b/src/live_effects/lpe-fillet-chamfer.cpp
@@ -517,6 +517,8 @@ LPEFilletChamfer::doEffect_path(std::vector<Geom::Path> const &path_in)
counter - counterCurves,
filletChamferData[counter - counterCurves][X]),
&intpart);
+ } else if (!path_it->closed() && curve_it2 == curve_endit){
+ time_it2 = 0;
} else {
time_it2 = modf(fillet_chamfer_values.to_time(
counter + 1, filletChamferData[counter + 1][X]),
@@ -529,6 +531,8 @@ LPEFilletChamfer::doEffect_path(std::vector<Geom::Path> const &path_in)
it1_length + fillet_chamfer_values.to_len(
counter - counterCurves,
filletChamferData[counter - counterCurves][X]);
+ } else if (!path_it->closed() && curve_it2 == curve_endit){
+ resultLenght = 0;
} else {
resultLenght =
it1_length + fillet_chamfer_values.to_len(
@@ -607,6 +611,8 @@ LPEFilletChamfer::doEffect_path(std::vector<Geom::Path> const &path_in)
int type = 0;
if(path_it->closed() && curve_it2 == curve_endit){
type = abs(filletChamferData[counter - counterCurves][Y]);
+ } else if (!path_it->closed() && curve_it2 == curve_endit){
+ //0
} else {
type = abs(filletChamferData[counter + 1][Y]);
}