Skip to content

Commit

Permalink
use complete layerSource instead of only basename
Browse files Browse the repository at this point in the history
  • Loading branch information
luipir committed Aug 28, 2018
1 parent 1bc1bb2 commit 6a2934c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/RasterCalculator.py
Expand Up @@ -125,7 +125,7 @@ def processAlgorithm(self, parameters, context, feedback):

layersDict = {}
if layers:
layersDict = {os.path.basename(lyr.source().split(".")[0]): lyr for lyr in layers}
layersDict = {lyr.source(): lyr for lyr in layers}

crs = self.parameterAsCrs(parameters, self.CRS, context)
if not crs or not crs.isValid():
Expand Down

0 comments on commit 6a2934c

Please sign in to comment.