Skip to content

Commit

Permalink
[processing] correctly recognize grid type (fix #14302)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Feb 17, 2016
1 parent e7fe61e commit ead88a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/Grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def processAlgorithm(self, progress):
raise GeoAlgorithmExecutionException(
self.tr('Vertical spacing is too small for the covered area'))

if self.types[idx].find('polygon') >= 0:
#if self.types[idx].find(self.tr('polygon')) >= 0:
if idx != 0:
geometryType = QGis.WKBPolygon
else:
geometryType = QGis.WKBLineString
Expand Down

0 comments on commit ead88a3

Please sign in to comment.