Skip to content
Permalink
Browse files

[processing] correctly recognize grid type (fix #14302)

  • Loading branch information
alexbruy committed Feb 17, 2016
1 parent e7fe61e commit ead88a3ac23117df33eac79150d9ea7881b3aa38
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/processing/algs/qgis/Grid.py
@@ -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

0 comments on commit ead88a3

Please sign in to comment.
You can’t perform that action at this time.