Skip to content
Browse files
fix the QgsMeshLayerProperties constructor
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 f86d8de4e8290222be0ec09e5935a1dbff037dd6
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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 );

0 comments on commit f86d8de

Please sign in to comment.