Skip to content

Commit

Permalink
sqrt with an integer ambiguous on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 16, 2013
1 parent d738e3d commit c84ad6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mapserver/qgsprojectparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,8 @@ void QgsProjectParser::addLayers( QDomDocument &doc,
{
if ( version == "1.1.1" )
{
double OGC_PX_M = 0.00028; // OGC referance pixel size in meter, also used by qgis
double SCALE_TO_SCALEHINT = OGC_PX_M * sqrt( 2 );
double OGC_PX_M = 0.00028; // OGC reference pixel size in meter, also used by qgis
double SCALE_TO_SCALEHINT = OGC_PX_M * sqrt( 2.0 );

QDomElement scaleHintElem = doc.createElement( "ScaleHint" );
scaleHintElem.setAttribute( "min", QString::number( currentLayer->minimumScale() * SCALE_TO_SCALEHINT ) );
Expand Down

0 comments on commit c84ad6e

Please sign in to comment.