Skip to content
Permalink
Browse files
[convert to curve] remove comments
# Conflicts:
#	src/core/geometry/qgsgeometry.cpp
  • Loading branch information
olivierdalang authored and nyalldawson committed Jun 18, 2021
1 parent 7c41af6 commit 948bf2ae623bd85388309225fb9a4aeaba77e7a0
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/core/geometry/qgscompoundcurve.cpp
@@ -945,7 +945,6 @@ bool QgsCompoundCurve::convertVertex( QgsVertexId position )
if ( subVertexId.vertex == 0 || subVertexId.vertex == curve->numPoints() - 1 )
return false;

// TODO factorize circularString and lineString as logic is almost the same
if ( const QgsCircularString *circularString = qgsgeometry_cast<const QgsCircularString *>( curve ) )
{
// If it's a circular string, we convert to LineString
@@ -982,7 +981,6 @@ bool QgsCompoundCurve::convertVertex( QgsVertexId position )
QgsPointSequence points;
lineString->points( points );

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

0 comments on commit 948bf2a

Please sign in to comment.