Skip to content
Browse files

fix use layer source and managed string parsing in case of translation

  • Loading branch information
luipir committed Aug 28, 2018
1 parent faf9716 commit 1bc1bb2f13e480d0282e940d63ed7260f72d71eb
Showing with 4 additions and 4 deletions.
  1. +4 −4 python/plugins/processing/algs/qgis/
@@ -230,7 +230,7 @@ def processBeforeAddingToModeler(self, algorithm, model):
def mappedNameToLayer(self, lyr, expression, layersDict, context):
'''Try to identify if a real layer is mapped in the expression with a symbolic name.'''

nameToMap =
nameToMap = lyr.source()

# check for layers directly added in the expression
if (nameToMap + "@") in expression:
@@ -249,12 +249,12 @@ def mappedNameToLayer(self, lyr, expression, layersDict, context):
varDescription = None
for varName in expContextAlgInputsScope.variableNames():

layer = expContextAlgInputsScope.variable(varName)
layerInContext = expContextAlgInputsScope.variable(varName)

if not isinstance(layer, str) and not isinstance(layer, QgsMapLayer):
if not isinstance(layerInContext, str) and not isinstance(layerInContext, QgsMapLayer):

if isinstance(layer, QgsMapLayer) and nameToMap not in layer.source():
if isinstance(layerInContext, QgsMapLayer) and nameToMap not in layerInContext.source():

varDescription = expContextAlgInputsScope.description(varName)

0 comments on commit 1bc1bb2

Please sign in to comment.
You can’t perform that action at this time.