Skip to content

Commit c9ff77f

Browse files
committed
Fix power validity test in raster calculator (fix #11278)
1 parent e151e2f commit c9ff77f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/analysis/raster/qgsrastermatrix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ bool QgsRasterMatrix::twoArgumentOperation( TwoArgOperator op, const QgsRasterMa
550550

551551
bool QgsRasterMatrix::testPowerValidity( double base, double power )
552552
{
553-
if (( base == 0 && power < 0 ) || ( power < 0 && ( power - floor( power ) ) > 0 ) )
553+
if (( base == 0 && power < 0 ) || ( base < 0 && ( power - floor( power ) ) > 0 ) )
554554
{
555555
return false;
556556
}

0 commit comments

Comments
 (0)