Skip to content

Commit 3ec0e75

Browse files
author
mhugent
committed
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
1 parent 8bc07a5 commit 3ec0e75

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)