From ac8ff5a599459b52a9d87cf821a59a4c54754878 Mon Sep 17 00:00:00 2001 From: Daniel Cumberbatch Date: Wed, 6 May 2020 23:48:17 +0100 Subject: [PATCH] Issue #130: Corrected incorrect inequality. --- src/algorithm/lineSegment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algorithm/lineSegment.cpp b/src/algorithm/lineSegment.cpp index 1e7008da..60b1737e 100644 --- a/src/algorithm/lineSegment.cpp +++ b/src/algorithm/lineSegment.cpp @@ -196,7 +196,7 @@ std::unique_ptr lineSegment( const LineString& ls } bool reverse = false; - if ( start < end ) + if ( start > end ) { // Swap the start and end positions so that they // define a positive range on ls, setting the