Skip to content

Commit da8fc02

Browse files
Gustrywonder-sk
authored andcommitted
replace exp10 by pow on mac (#3490)
1 parent 8dd9b52 commit da8fc02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/wms/qgswmsprovider.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ QImage *QgsWmsProvider::draw( QgsRectangle const &viewExtent, int pixelWidth, in
506506
static bool _fuzzyContainsRect( const QRectF& r1, const QRectF& r2 )
507507
{
508508
double significantDigits = log10( qMax( r1.width(), r1.height() ) );
509-
double epsilon = exp10( significantDigits - 5 ); // floats have 6-9 significant digits
509+
double epsilon = pow( 10, ( significantDigits - 5 ) ); // floats have 6-9 significant digits
510510
return r1.contains( r2.adjusted( epsilon, epsilon, -epsilon, -epsilon ) );
511511
}
512512

0 commit comments

Comments
 (0)