Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix #2324
git-svn-id: http://svn.osgeo.org/qgis/trunk@13724 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jun 13, 2010
1 parent 5d2f0eb commit 27e451c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgsdistancearea.cpp
Expand Up @@ -178,6 +178,9 @@ double QgsDistanceArea::measure( QgsGeometry* geometry )
return 0.0;

unsigned char* wkb = geometry->asWkb();
if ( !wkb )
return 0.0;

unsigned char* ptr;
unsigned int wkbType;
double res, resTotal = 0;
Expand Down

0 comments on commit 27e451c

Please sign in to comment.