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 ae6592d commit 42fa83cc7eda0994e44caeea23a06237795576fb
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/qgsdistancearea.cpp
@@ -890,6 +890,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 42fa83c

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