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/qgis@15693 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 11, 2011
1 parent 8bc07a5 commit 3ec0e75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/analysis/vector/qgszonalstatistics.cpp
Original file line number Diff line number Diff line change
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 3ec0e75

Please sign in to comment.