Skip to content
Permalink
Browse files

Another default style handling fix for point cloud layers

  • Loading branch information
nyalldawson committed Oct 27, 2020
1 parent 9fabf4b commit 17c83d72718fddfead516492aea151395ed8c295
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/core/pointcloud/qgspointcloudlayer.cpp
@@ -148,8 +148,6 @@ void QgsPointCloudLayer::setTransformContext( const QgsCoordinateTransformContex

void QgsPointCloudLayer::setDataSource( const QString &dataSource, const QString &baseName, const QString &provider, const QgsDataProvider::ProviderOptions &options, bool loadDefaultStyleFlag )
{
Q_UNUSED( loadDefaultStyleFlag )

if ( mDataProvider )
disconnect( mDataProvider.get(), &QgsPointCloudDataProvider::dataChanged, this, &QgsPointCloudLayer::dataChanged );

@@ -185,6 +183,12 @@ void QgsPointCloudLayer::setDataSource( const QString &dataSource, const QString

setCrs( mDataProvider->crs() );

if ( loadDefaultStyleFlag )
{
bool defaultLoadedFlag = false;
loadDefaultStyle( defaultLoadedFlag );
}

connect( mDataProvider.get(), &QgsPointCloudDataProvider::dataChanged, this, &QgsPointCloudLayer::dataChanged );

emit dataSourceChanged();

0 comments on commit 17c83d7

Please sign in to comment.
You can’t perform that action at this time.