summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/filletchamferpointarray.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-06-25 17:52:51 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-06-25 17:52:51 +0000
commitd798a62d8347d3191aac351eb7ebef44d9fa64a3 (patch)
treea3ab5364274c4a8f4752dbaebaeeae9ef9e96b9a /src/live_effects/parameter/filletchamferpointarray.cpp
parentImprove Tips for BSpline mode (diff)
downloadinkscape-d798a62d8347d3191aac351eb7ebef44d9fa64a3.tar.gz
inkscape-d798a62d8347d3191aac351eb7ebef44d9fa64a3.zip
Fix for the bug 1468396. Fix the new bug noticed by su_v
Fixed bugs: - https://launchpad.net/bugs/1468396 (bzr r14219)
Diffstat (limited to 'src/live_effects/parameter/filletchamferpointarray.cpp')
-rw-r--r--src/live_effects/parameter/filletchamferpointarray.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/live_effects/parameter/filletchamferpointarray.cpp b/src/live_effects/parameter/filletchamferpointarray.cpp
index c469b5fdd..43352507e 100644
--- a/src/live_effects/parameter/filletchamferpointarray.cpp
+++ b/src/live_effects/parameter/filletchamferpointarray.cpp
@@ -270,6 +270,9 @@ void FilletChamferPointArrayParam::recalculate_knots(
Piecewise<D2<SBasis> > const &pwd2_in)
{
bool change = false;
+ if(_vector.size() == 0){
+ return;
+ }
PathVector pathv = path_from_piecewise(pwd2_in, 0.001);
if (!pathv.empty()) {
std::vector<Point> result;