Skip to content
Permalink
Browse files

Fix potential crash in QgsCircularString::vertexAngle

  • Loading branch information
nyalldawson committed Sep 19, 2017
1 parent 773d660 commit 0fba03f8167844d545e234272ab8525e6159b700
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/geometry/qgscircularstring.cpp
@@ -893,6 +893,12 @@ void QgsCircularString::insertVertexBetween( int after, int before, int pointOnC

double QgsCircularString::vertexAngle( QgsVertexId vId ) const
{
if ( numPoints() < 3 )
{
//undefined
return 0.0;
}

int before = vId.vertex - 1;
int vertex = vId.vertex;
int after = vId.vertex + 1;

0 comments on commit 0fba03f

Please sign in to comment.
You can’t perform that action at this time.