summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/filletchamferpointarray.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-06-25 16:08:54 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-06-25 16:08:54 +0000
commitf914c2572f0e73cba795fb11047cfed056e06616 (patch)
treed881764fb8b2e4bc81c89974d703874e21a004fd /src/live_effects/parameter/filletchamferpointarray.cpp
parentExtensions. webslicer_export.py - return message if no slicer layer found (bu... (diff)
downloadinkscape-f914c2572f0e73cba795fb11047cfed056e06616.tar.gz
inkscape-f914c2572f0e73cba795fb11047cfed056e06616.zip
Fix for the bug 1468396
Fixed bugs: - https://launchpad.net/bugs/1468396 (bzr r14217)
Diffstat (limited to 'src/live_effects/parameter/filletchamferpointarray.cpp')
-rw-r--r--src/live_effects/parameter/filletchamferpointarray.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/live_effects/parameter/filletchamferpointarray.cpp b/src/live_effects/parameter/filletchamferpointarray.cpp
index 10ded4d9f..c469b5fdd 100644
--- a/src/live_effects/parameter/filletchamferpointarray.cpp
+++ b/src/live_effects/parameter/filletchamferpointarray.cpp
@@ -491,6 +491,13 @@ std::vector<double> FilletChamferPointArrayParam::get_times(int index, std::vect
curve_it1 = subpaths[positions.first][positions.second].duplicate();
Coord it1_length = (*curve_it1).length(tolerance);
double time_it1, time_it2, time_it1_B, intpart;
+ if(_vector.size() <= index){
+ std::vector<double> out;
+ out.push_back(0);
+ out.push_back(1);
+ out.push_back(0);
+ return out;
+ }
time_it1 = modf(to_time(index, _vector[index][X]), &intpart);
if (_vector[index][Y] == 0) {
time_it1 = 0;