Skip to content

Commit 919ae74

Browse files
author
mhugent
committedApr 11, 2011
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
1 parent 54f3321 commit 919ae74

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/analysis/vector/qgszonalstatistics.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@ int QgsZonalStatistics::calculateStatistics( QProgressDialog* p )
209209

210210
GDALClose( inputDataset );
211211
mPolygonLayer->updateFieldMap();
212+
213+
if ( p && p->wasCanceled() )
214+
{
215+
return 9;
216+
}
217+
212218
return 0;
213219
}
214220

0 commit comments

Comments
 (0)
Please sign in to comment.