Skip to content

Commit c84ad6e

Browse files
committed
sqrt with an integer ambiguous on MSVC
1 parent d738e3d commit c84ad6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mapserver/qgsprojectparser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,8 +774,8 @@ void QgsProjectParser::addLayers( QDomDocument &doc,
774774
{
775775
if ( version == "1.1.1" )
776776
{
777-
double OGC_PX_M = 0.00028; // OGC referance pixel size in meter, also used by qgis
778-
double SCALE_TO_SCALEHINT = OGC_PX_M * sqrt( 2 );
777+
double OGC_PX_M = 0.00028; // OGC reference pixel size in meter, also used by qgis
778+
double SCALE_TO_SCALEHINT = OGC_PX_M * sqrt( 2.0 );
779779

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

0 commit comments

Comments
 (0)