Skip to content

Commit

Permalink
Return error code in zonal statistics if operation canceled by user
Browse files Browse the repository at this point in the history
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 919ae74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/analysis/vector/qgszonalstatistics.cpp
Expand Up @@ -209,6 +209,12 @@ int QgsZonalStatistics::calculateStatistics( QProgressDialog* p )

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

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

return 0;
}

Expand Down

0 comments on commit 919ae74

Please sign in to comment.