Skip to content

Commit ad44a50

Browse files
committed
[processing] correctly use TYPE_VECTOR constants from corresponding module
1 parent bfa4988 commit ad44a50

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/plugins/processing/algs/saga/SagaAlgorithm.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@ def processAlgorithm(self, progress):
197197
if exportCommand is not None:
198198
commands.append(exportCommand)
199199
param.value = ";".join(layers)
200-
elif param.datatype in [dataobjects.TYPE_VECTOR_ANY,
201-
dataobjects.TYPE_VECTOR_LINE,
202-
dataobjects.TYPE_VECTOR_POLYGON,
203-
dataobjects.TYPE_VECTOR_POINT]:
200+
elif param.datatype in [ParameterMultipleInput.TYPE_VECTOR_ANY,
201+
ParameterMultipleInput.TYPE_VECTOR_LINE,
202+
ParameterMultipleInput.TYPE_VECTOR_POLYGON,
203+
ParameterMultipleInput.TYPE_VECTOR_POINT]:
204204
for layerfile in layers:
205205
layer = dataobjects.getObjectFromUri(layerfile, False)
206206
if layer:

0 commit comments

Comments
 (0)