Skip to content
Permalink
Browse files

Fix avoid crash when measuring empty geometry

  • Loading branch information
manisandro authored and nyalldawson committed May 12, 2016
1 parent ebdccf3 commit 1e8abb1d1d818ff36beaa9c88b06480a68f4f6b1
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/qgsdistancearea.cpp
@@ -889,6 +889,11 @@ void QgsDistanceArea::computeAreaInit()

double QgsDistanceArea::computePolygonArea( const QList<QgsPoint>& points ) const
{
if ( points.isEmpty() )
{
return 0;
}

double x1, y1, x2, y2, dx, dy;
double Qbar1, Qbar2;
double area;

0 comments on commit 1e8abb1

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