mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
sqrt with an integer ambiguous on MSVC
This commit is contained in:
parent
d738e3df7c
commit
c84ad6e9d5
@ -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 ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user