Skip to content
Permalink
Browse files

Fix power validity test in raster calculator (fix #11278)

  • Loading branch information
nyalldawson committed Mar 16, 2015
1 parent e151e2f commit c9ff77f9b4a37d447da3af6c92709f66cbb1d83d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/analysis/raster/qgsrastermatrix.cpp
@@ -550,7 +550,7 @@ bool QgsRasterMatrix::twoArgumentOperation( TwoArgOperator op, const QgsRasterMa

bool QgsRasterMatrix::testPowerValidity( double base, double power )
{
if (( base == 0 && power < 0 ) || ( power < 0 && ( power - floor( power ) ) > 0 ) )
if (( base == 0 && power < 0 ) || ( base < 0 && ( power - floor( power ) ) > 0 ) )
{
return false;
}

0 comments on commit c9ff77f

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