Skip to content

Commit

Permalink
Address Nyall's reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
NEDJIMAbelgacem committed Nov 8, 2020
1 parent 23b723e commit d008400
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/3d/qgscameracontroller.cpp
Expand Up @@ -181,7 +181,7 @@ void QgsCameraController::resetView( float distance )
void QgsCameraController::setViewFromTop( float worldX, float worldY, float distance, float yaw )
{
QgsCameraPose camPose;
if ( mTerrainEntity != nullptr )
if ( mTerrainEntity )
camPose.setCenterPoint( QgsVector3D( worldX, mTerrainEntity->terrainElevationOffset(), worldY ) );
else
camPose.setCenterPoint( QgsVector3D( worldX, 0.0f, worldY ) );
Expand Down
2 changes: 1 addition & 1 deletion src/app/3d/qgs3dmapconfigwidget.cpp
Expand Up @@ -75,7 +75,7 @@ Qgs3DMapConfigWidget::Qgs3DMapConfigWidget( Qgs3DMapSettings *map, QgsMapCanvas
spinMapResolution->setClearValue( 512 );
spinScreenError->setClearValue( 3 );
spinGroundError->setClearValue( 1 );
terrainElevationOffsetSpinBox->setClearValue( 0.0f );
terrainElevationOffsetSpinBox->setClearValue( 0.0 );

cboTerrainLayer->setAllowEmptyLayer( true );
cboTerrainLayer->setFilters( QgsMapLayerProxyModel::RasterLayer );
Expand Down

0 comments on commit d008400

Please sign in to comment.