mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
more compact if
This commit is contained in:
parent
b3d94f110f
commit
7d1471a715
@ -117,9 +117,8 @@ class RasterCalculator(QgisAlgorithm):
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user