Skip to content

Commit

Permalink
[processing] do not accept grass vector layers as inputs
Browse files Browse the repository at this point in the history
fixes #12436

(cherry picked from commit de72874)
  • Loading branch information
volaya authored and jef-n committed Jul 19, 2015
1 parent 3792afd commit d03793c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/tools/dataobjects.py
Original file line number Diff line number Diff line change
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 d03793c

Please sign in to comment.