Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] do not accept grass vector layers as inputs
fixes #12436
  • Loading branch information
volaya committed Jul 3, 2015
1 parent b9b6257 commit de72874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/tools/dataobjects.py
Expand Up @@ -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)
Expand Down

0 comments on commit de72874

Please sign in to comment.