Skip to content
Permalink
Browse files
sqrt with an integer ambiguous on MSVC
  • Loading branch information
jef-n committed Sep 16, 2013
1 parent d738e3d commit c84ad6e9d5fe167cdb26691b4c89c5afe8b2f4f8
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/mapserver/qgsprojectparser.cpp
@@ -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 ) );

0 comments on commit c84ad6e

Please sign in to comment.