Skip to content
Permalink
Browse files

replace exp10 by pow on mac (#3490)

  • Loading branch information
Gustry authored and wonder-sk committed Sep 14, 2016
1 parent 8dd9b52 commit da8fc0228755349fe76b3e9f824f3f5e62c86538
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/wms/qgswmsprovider.cpp
@@ -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 ) );
}

0 comments on commit da8fc02

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