Skip to content
Permalink
Browse files

[processing] do not accept grass vector layers as inputs

fixes #12436
  • Loading branch information
volaya committed Jun 26, 2015
1 parent b9b6257 commit de728743b73541a320f68d087f4402a6d17620f1
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/tools/dataobjects.py
@@ -90,7 +90,7 @@ def getVectorLayers(shapetype=[-1], sorting=True):
vector = []
for layer in layers:
mapLayer = layer.layer()
if mapLayer.type() == QgsMapLayer.VectorLayer:
if mapLayer.type() == QgsMapLayer.VectorLayer and mapLayer.dataProvider().name() != "grass":
if (mapLayer.hasGeometryType() and
(shapetype == ALL_TYPES or mapLayer.geometryType() in shapetype)):
vector.append(mapLayer)

0 comments on commit de72874

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