Skip to content
Permalink
Browse files

Fix cloning point cloud layers

  • Loading branch information
nyalldawson committed Oct 26, 2020
1 parent 23dfbf8 commit 59a6035e58ff2cb5671cd46dfc6febc445eda937
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/core/pointcloud/qgspointcloudlayer.cpp
@@ -40,7 +40,12 @@ QgsPointCloudLayer::~QgsPointCloudLayer() = default;

QgsPointCloudLayer *QgsPointCloudLayer::clone() const
{
QgsPointCloudLayer *layer = new QgsPointCloudLayer( source(), name() );
LayerOptions options;
options.loadDefaultStyle = false;
options.transformContext = transformContext();
options.skipCrsValidation = true;

QgsPointCloudLayer *layer = new QgsPointCloudLayer( source(), name(), mProviderKey, options );
QgsMapLayer::clone( layer );
return layer;
}

0 comments on commit 59a6035

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