We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent dde58ad commit 30a8134Copy full SHA for 30a8134
src/core/qgsvectorlayer.cpp
@@ -219,11 +219,15 @@ QgsVectorLayer *QgsVectorLayer::clone() const
219
layer->selectByIds( selectedFeatureIds() );
220
layer->setExcludeAttributesWms( excludeAttributesWms() );
221
layer->setExcludeAttributesWfs( excludeAttributesWfs() );
222
- layer->setRenderer( renderer()->clone() );
223
layer->setAttributeTableConfig( attributeTableConfig() );
224
layer->setFeatureBlendMode( featureBlendMode() );
225
layer->setLayerTransparency( layerTransparency() );
226
+ if ( renderer() )
227
+ {
228
+ layer->setRenderer( renderer()->clone() );
229
+ }
230
+
231
if ( labeling() )
232
{
233
layer->setLabeling( labeling()->clone() );
0 commit comments