Skip to content

Commit

Permalink
fix the QgsMeshLayerProperties constructor
Browse files Browse the repository at this point in the history
In constructor, if HAVE_3D is defined, the "mVector3DWidget is constructed with the mapCanvas instance of the QgisApp instance instead with the QgsMapCanvas instance which is an argument of the constructor.
  • Loading branch information
vcloarec authored and PeterPetrik committed Apr 15, 2019
1 parent e2f7b91 commit f86d8de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/mesh/qgsmeshlayerproperties.cpp
Expand Up @@ -66,7 +66,7 @@ QgsMeshLayerProperties::QgsMeshLayerProperties( QgsMapLayer *lyr, QgsMapCanvas *
connect( mMeshLayer, &QgsMeshLayer::dataChanged, this, &QgsMeshLayerProperties::syncAndRepaint );

#ifdef HAVE_3D
mVector3DWidget = new QgsMeshLayer3DRendererWidget( mMeshLayer, QgisApp::instance()->mapCanvas(), mOptsPage_3DView );
mVector3DWidget = new QgsMeshLayer3DRendererWidget( mMeshLayer, canvas, mOptsPage_3DView );

mOptsPage_3DView->setLayout( new QVBoxLayout( mOptsPage_3DView ) );
mOptsPage_3DView->layout()->addWidget( mVector3DWidget );
Expand Down

0 comments on commit f86d8de

Please sign in to comment.