Skip to content

Commit

Permalink
Fixed issue when using multiple vector inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Sep 24, 2013
1 parent 87163c6 commit 3b07aff
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/grass/description/r.drain.txt
@@ -1,7 +1,7 @@
r.drain
r.drain - Traces a flow through an elevation model on a raster map.
Raster (r.*)
ParameterRaster|input|Elevatio|False
ParameterRaster|input|Elevation|False
ParameterString|coordinate|Map coordinates of starting point(s) (E,N)|(0,0)
ParameterMultipleInput|vector_points|Vector layer(s) containing starting point(s)|0|False
ParameterBoolean|-c|Copy input cell values on output|False
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/ParametersPanel.py
Expand Up @@ -258,7 +258,7 @@ def getWidgetFromParameter(self, param):
elif param.datatype == ParameterMultipleInput.TYPE_VECTOR_ANY:
options = dataobjects.getVectorLayers()
else:
options = dataobjects.getVectorLayers(param.datatype)
options = dataobjects.getVectorLayers([param.datatype])
opts = []
for opt in options:
opts.append(self.getExtendedLayerName(opt))
Expand Down
Expand Up @@ -26,7 +26,6 @@
from processing.parameters.ParameterDataObject import ParameterDataObject
from processing.tools import dataobjects
from qgis.core import *
from processing.tools import dataobjects


class ParameterMultipleInput(ParameterDataObject):
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/parameters/ParameterVector.py
Expand Up @@ -27,7 +27,6 @@
from processing.parameters.ParameterDataObject import ParameterDataObject
from processing.tools import dataobjects
from qgis.core import *
from processing.tools import dataobjects

class ParameterVector(ParameterDataObject):

Expand Down

0 comments on commit 3b07aff

Please sign in to comment.