Skip to content

Commit

Permalink
[processing] fixed adding raster layer to project
Browse files Browse the repository at this point in the history
fixes #13791
  • Loading branch information
volaya committed Nov 8, 2015
1 parent 86556c2 commit 7e79398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/Postprocessing.py
Expand Up @@ -59,7 +59,7 @@ def handleAlgorithmResults(alg, progress=None, showResults=True):
continue
if isinstance(out, (OutputRaster, OutputVector, OutputTable)):
try:
if out.layer is not None:
if hasattr(out, "layer") and out.layer is not None:
out.layer.setLayerName(out.description)
QgsMapLayerRegistry.instance().addMapLayers([out.layer])
else:
Expand Down

0 comments on commit 7e79398

Please sign in to comment.