Skip to content

Commit

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

// QgsMessageLog::logMessage("TODO : LineString not treated yet", "DEBUG");
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 );

QgsLineString *curveA = new QgsLineString();
curveA->setPoints( partA );
Expand Down

0 comments on commit c86f8a8

Please sign in to comment.