Skip to content
Permalink
Browse files
The extent is cloned in map layer
  • Loading branch information
pblottiere committed May 18, 2017
1 parent 4140681 commit dde58adac5f489b2c9b7e5f696b2e6ccf78a7e72
Showing with 1 addition and 1 deletion.
  1. +1 −0 src/core/qgsmaplayer.cpp
  2. +0 −1 src/core/qgsvectorlayer.cpp
@@ -105,6 +105,7 @@ void QgsMapLayer::clone( QgsMapLayer *layer ) const

layer->setName( name() );
layer->setShortName( shortName() );
layer->setExtent( extent() );
layer->setMinimumScale( minimumScale() );
layer->setMaximumScale( maximumScale() );
layer->setScaleBasedVisibility( hasScaleBasedVisibility() );
@@ -219,7 +219,6 @@ QgsVectorLayer *QgsVectorLayer::clone() const
layer->selectByIds( selectedFeatureIds() );
layer->setExcludeAttributesWms( excludeAttributesWms() );
layer->setExcludeAttributesWfs( excludeAttributesWfs() );
layer->setExtent( extent() );
layer->setRenderer( renderer()->clone() );
layer->setAttributeTableConfig( attributeTableConfig() );
layer->setFeatureBlendMode( featureBlendMode() );

0 comments on commit dde58ad

Please sign in to comment.