Skip to content

Commit

Permalink
ContourCalculator: move to one point path for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
hrobeers committed Mar 4, 2018
1 parent a7bc5a8 commit 1e4fa8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions include/foillogic/contourcalculator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<qreal, INITCNT> points_x;
Expand Down
4 changes: 2 additions & 2 deletions src/version_autogen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1e4fa8d

Please sign in to comment.