Skip to content
Permalink
Browse files

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

  • Loading branch information
nyalldawson committed Mar 17, 2015
1 parent 44fec0e commit 327517d0d93f5eabf62968e51c70b62b0bec2a95
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 327517d

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