Skip to content
Permalink
Browse files
Return error code in zonal statistics if operation canceled by user
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15693 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 11, 2011
1 parent 8bc07a5 commit 3ec0e7513ee2697183de79e895ad1e16c5975230
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/analysis/vector/qgszonalstatistics.cpp
@@ -209,6 +209,12 @@ int QgsZonalStatistics::calculateStatistics( QProgressDialog* p )

GDALClose( inputDataset );
mPolygonLayer->updateFieldMap();

if ( p && p->wasCanceled() )
{
return 9;
}

return 0;
}

0 comments on commit 3ec0e75

Please sign in to comment.