Skip to content

Commit a611905

Browse files
committed
fixed #7116
1 parent 995fbad commit a611905

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/plugins/sextante/grass/GrassAlgorithm.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
* *
1717
***************************************************************************
1818
"""
19-
2019
__author__ = 'Victor Olaya'
2120
__date__ = 'August 2012'
2221
__copyright__ = '(C) 2012, Victor Olaya'
@@ -53,6 +52,7 @@
5352
from sextante.outputs.OutputFile import OutputFile
5453
from sextante.parameters.ParameterExtent import ParameterExtent
5554
from sextante.parameters.ParameterNumber import ParameterNumber
55+
from sextante.parameters.ParameterString import ParameterString
5656

5757
class GrassAlgorithm(GeoAlgorithm):
5858

@@ -286,8 +286,8 @@ def processAlgorithm(self, progress):
286286
elif isinstance(param, ParameterSelection):
287287
idx = int(param.value)
288288
command+=(" " + param.name + "=" + str(param.options[idx]));
289-
elif isinstance(param, ParameterSelection):
290-
command+=(" " + param.name + "=" + str(param.value));
289+
elif isinstance(param, ParameterString):
290+
command+=(" " + param.name + "=\"" + str(param.value) + "\"");
291291
else:
292292
command+=(" " + param.name + "=" + str(param.value));
293293

0 commit comments

Comments
 (0)