Skip to content
Permalink
Browse files
[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 7b988be1403571e19163945da8b01aa55881486a
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/geometry/qgscompoundcurve.cpp
@@ -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 );

0 comments on commit 7b988be

Please sign in to comment.