Skip to content
Permalink
Browse files

more compact if

  • Loading branch information
luipir committed Sep 4, 2018
1 parent b3d94f1 commit 7d1471a71521df0e74e3c1b42afaa54ec14c41e7
Showing with 2 additions and 3 deletions.
  1. +2 −3 python/plugins/processing/algs/qgis/RasterCalculator.py
@@ -117,9 +117,8 @@ def processAlgorithm(self, parameters, context, feedback):
crs = list(layersDict.values())[0].crs()

bbox = self.parameterAsExtent(parameters, self.EXTENT, context)
if bbox.isNull():
if not layers:
raise QgsProcessingException(self.tr("No reference layer selected nor extent box provided"))
if bbox.isNull() and not layers:
raise QgsProcessingException(self.tr("No reference layer selected nor extent box provided"))

if not bbox.isNull():
bboxCrs = self.parameterAsExtentCrs(parameters, self.EXTENT, context)

0 comments on commit 7d1471a

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