Skip to content

Commit

Permalink
replace exp10 by pow on mac (#3490)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry authored and wonder-sk committed Sep 14, 2016
1 parent 8dd9b52 commit da8fc02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -506,7 +506,7 @@ QImage *QgsWmsProvider::draw( QgsRectangle const &viewExtent, int pixelWidth, in
static bool _fuzzyContainsRect( const QRectF& r1, const QRectF& r2 )
{
double significantDigits = log10( qMax( r1.width(), r1.height() ) );
double epsilon = exp10( significantDigits - 5 ); // floats have 6-9 significant digits
double epsilon = pow( 10, ( significantDigits - 5 ) ); // floats have 6-9 significant digits
return r1.contains( r2.adjusted( epsilon, epsilon, -epsilon, -epsilon ) );
}

Expand Down

0 comments on commit da8fc02

Please sign in to comment.