Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix warning
  • Loading branch information
jef-n committed Feb 20, 2018
1 parent 4eef948 commit 34553d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/3d/terrain/qgsdemterraintileloader_p.cpp
Expand Up @@ -32,6 +32,8 @@ static void _heightMapMinMax( const QByteArray &heightMap, float &zMin, float &z
const float *zBits = ( const float * ) heightMap.constData();
int zCount = heightMap.count() / sizeof( float );
bool first = true;

zMin = zMax = std::numeric_limits<float>::quiet_NaN();
for ( int i = 0; i < zCount; ++i )
{
float z = zBits[i];
Expand All @@ -45,9 +47,6 @@ static void _heightMapMinMax( const QByteArray &heightMap, float &zMin, float &z
zMin = qMin( zMin, z );
zMax = qMax( zMax, z );
}

if ( first )
zMin = zMax = std::numeric_limits<float>::quiet_NaN();
}


Expand Down
2 changes: 1 addition & 1 deletion src/core/layout/qgslayoutitem.cpp
Expand Up @@ -951,7 +951,7 @@ void QgsLayoutItem::applyDataDefinedOrientation( double &width, double &height,
QgsLayoutItemPage::Orientation orientation = QgsLayoutUtils::decodePaperOrientation( orientationString, ok );
if ( ok )
{
double heightD, widthD;
double heightD = 0.0, widthD = 0.0;
switch ( orientation )
{
case QgsLayoutItemPage::Portrait:
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsextentgroupbox.cpp
Expand Up @@ -140,7 +140,7 @@ void QgsExtentGroupBox::setOutputExtent( const QgsRectangle &r, const QgsCoordin
}
}

int decimals;
int decimals = 4;
switch ( mOutputCrs.mapUnits() )
{
case QgsUnitTypes::DistanceDegrees:
Expand Down

0 comments on commit 34553d3

Please sign in to comment.