Skip to content

Commit 6c2c0af

Browse files
committedSep 25, 2017
Fix crash when removing vertices from compound curves
1 parent 27b4306 commit 6c2c0af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/core/geometry/qgscompoundcurve.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,15 +606,15 @@ bool QgsCompoundCurve::deleteVertex( QgsVertexId position )
606606
if ( mCurves.at( curveIds.at( 0 ).first )->numPoints() == 0 &&
607607
mCurves.at( curveIds.at( 1 ).first )->numPoints() != 0 )
608608
{
609-
removeCurve( curveIds.at( 0 ).first );
610609
mCurves.at( curveIds.at( 1 ).first )->moveVertex( QgsVertexId( 0, 0, 0 ), startPoint );
610+
removeCurve( curveIds.at( 0 ).first );
611611
}
612612
else if ( mCurves.at( curveIds.at( 0 ).first )->numPoints() != 0 &&
613613
mCurves.at( curveIds.at( 1 ).first )->numPoints() == 0 )
614614
{
615-
removeCurve( curveIds.at( 1 ).first );
616615
mCurves.at( curveIds.at( 0 ).first )->moveVertex(
617616
QgsVertexId( 0, 0, mCurves.at( curveIds.at( 0 ).first )->numPoints() - 1 ), endPoint );
617+
removeCurve( curveIds.at( 1 ).first );
618618
}
619619
else if ( mCurves.at( curveIds.at( 0 ).first )->numPoints() == 0 &&
620620
mCurves.at( curveIds.at( 1 ).first )->numPoints() == 0 )

0 commit comments

Comments
 (0)
Please sign in to comment.