Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[convert to curve] PR review
Co-authored-by: Paul Blottiere <blottiere.paul@gmail.com>
  • Loading branch information
2 people authored and nyalldawson committed Jun 18, 2021
1 parent f4be8fe commit 7b988be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/geometry/qgscompoundcurve.cpp
Expand Up @@ -957,9 +957,9 @@ bool QgsCompoundCurve::convertVertex( QgsVertexId position )
QgsPointSequence points;
circularString->points( points );

QgsPointSequence partA = points.mid( 0, subVertexId.vertex );
QgsPointSequence partB = QgsPointSequence() << points[subVertexId.vertex - 1] << points[subVertexId.vertex] << points[subVertexId.vertex + 1];
QgsPointSequence partC = points.mid( subVertexId.vertex + 1 );
const QgsPointSequence partA = points.mid( 0, subVertexId.vertex );
const QgsPointSequence partB = QgsPointSequence() << points[subVertexId.vertex - 1] << points[subVertexId.vertex] << points[subVertexId.vertex + 1];
const QgsPointSequence partC = points.mid( subVertexId.vertex + 1 );

std::unique_ptr<QgsCircularString> curveA = std::make_unique<QgsCircularString>();
curveA->setPoints( partA );
Expand Down

0 comments on commit 7b988be

Please sign in to comment.