Skip to content

Commit

Permalink
Fix power validity test in raster calculator (fix #11278)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 17, 2015
1 parent 44fec0e commit 327517d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/raster/qgsrastermatrix.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 327517d

Please sign in to comment.