Skip to content

Commit

Permalink
fix WITH_3D flag
Browse files Browse the repository at this point in the history
  • Loading branch information
NEDJIMAbelgacem committed Jan 17, 2022
1 parent 66ffdea commit 9f2a9bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -9929,6 +9929,7 @@ Qgs3DMapCanvasWidget *QgisApp::open3DMapView( const QString &viewName )

void QgisApp::close3DMapView( const QString &viewName )
{
#ifdef HAVE_3D
Qgs3DMapCanvasWidget *widget = get3DMapView( viewName );
if ( !widget )
return;
Expand All @@ -9950,6 +9951,9 @@ void QgisApp::close3DMapView( const QString &viewName )
}
mOpen3DMapViews.remove( widget );
delete widget;
#else
Q_UNUSED( viewName );
#endif
}

Qgs3DMapCanvasWidget *QgisApp::duplicate3DMapView( const QString &existingViewName, const QString &newViewName )
Expand Down Expand Up @@ -14008,7 +14012,8 @@ Qgs3DMapCanvasWidget *QgisApp::createNew3DMapCanvasDock( const QString &name, bo

return widget;
#else
Q_UNUSED( name )
Q_UNUSED( name );
Q_UNUSED( isDocked );
return nullptr;
#endif
}
Expand Down

0 comments on commit 9f2a9bc

Please sign in to comment.