From 1e4fa8d6b8841ab39842f74070fab5010473a2c2 Mon Sep 17 00:00:00 2001 From: hrobeers Date: Sun, 4 Mar 2018 12:30:22 +0100 Subject: [PATCH] ContourCalculator: move to one point path for consistency --- include/foillogic/contourcalculator.hpp | 3 +++ src/version_autogen.hpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/foillogic/contourcalculator.hpp b/include/foillogic/contourcalculator.hpp index c52952b..288139b 100644 --- a/include/foillogic/contourcalculator.hpp +++ b/include/foillogic/contourcalculator.hpp @@ -266,7 +266,10 @@ namespace foillogic void createSplinePath(QPointF* leadingEdgePnts[], QPointF* trailingEdgePnts[], int firstIndex, int lastIndex, SplineFunction splineFunction) { if (firstIndex >= lastIndex) + { + _result->moveTo(*leadingEdgePnts[firstIndex]); return; + } bool closing = firstIndex != 0; QVarLengthArray points_x; diff --git a/src/version_autogen.hpp b/src/version_autogen.hpp index 67c3684..a428c87 100644 --- a/src/version_autogen.hpp +++ b/src/version_autogen.hpp @@ -11,7 +11,7 @@ #define MINOR_VERSION 1 #define REVISION 1 -#define BUILD_NUMBER 517 -#define COMMIT_HASH "8b5be61e0b0e52754b0634cc600a9d3861dc8b86" +#define BUILD_NUMBER 518 +#define COMMIT_HASH "a7bc5a8021ef193c73af5d45a83ac39972499255" #endif // VERSION_AUTOGEN_H