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@15693 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 11, 2011
1 parent 54f3321 commit 919ae745b3fa73688a2922a2d7b83132d8b04bfd
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 919ae74

Please sign in to comment.