Skip to content

Commit

Permalink
[processing] quote GRASS layer inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Jan 24, 2017
1 parent 1746b32 commit 3525d03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/plugins/processing/algs/grass7/Grass7Algorithm.py
Expand Up @@ -395,16 +395,16 @@ def processCommand(self):
if isinstance(param, (ParameterRaster, ParameterVector)):
value = param.value
if value in self.exportedLayers.keys():
command += ' ' + param.name + '=' \
+ self.exportedLayers[value]
command += ' ' + param.name + '="' \
+ self.exportedLayers[value] + '"'
else:
command += ' ' + param.name + '=' + value
command += ' ' + param.name + '="' + value + '"'
elif isinstance(param, ParameterMultipleInput):
s = param.value
for layer in self.exportedLayers.keys():
s = s.replace(layer, self.exportedLayers[layer])
s = s.replace(';', ',')
command += ' ' + param.name + '=' + s
command += ' ' + param.name + '="' + s + '"'
elif isinstance(param, ParameterBoolean):
if param.value:
command += ' ' + param.name
Expand Down

0 comments on commit 3525d03

Please sign in to comment.