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 7b988be commit c86f8a8beaee23d02ddc1b91b157f37cc9cc9355
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/geometry/qgscompoundcurve.cpp
@@ -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 );

0 comments on commit c86f8a8

Please sign in to comment.