Skip to content

Commit

Permalink
Be nice, don't touch customized flat terrain provider, users wanted i…
Browse files Browse the repository at this point in the history
…t that way
  • Loading branch information
nirvn committed Oct 31, 2023
1 parent 2691236 commit 6441dcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgismobileapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ void QgisMobileapp::readProjectFile()
}
}

if ( mProject->elevationProperties()->terrainProvider()->type() == QStringLiteral( "flat" ) )
if ( mProject->elevationProperties()->terrainProvider()->type() == QStringLiteral( "flat" ) && qgsDoubleNear( mProject->elevationProperties()->terrainProvider()->offset(), 0.0 ) && qgsDoubleNear( mProject->elevationProperties()->terrainProvider()->scale(), 1.0 ) )
{
QgsRasterLayer *elevationLayer = LayerUtils::createOnlineElevationLayer();
mProject->addMapLayer( elevationLayer, false, true );
Expand Down

0 comments on commit 6441dcd

Please sign in to comment.