Skip to content

Commit

Permalink
The extent is cloned in map layer
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed May 18, 2017
1 parent 4140681 commit dde58ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/core/qgsmaplayer.cpp
Expand Up @@ -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() );
Expand Down
1 change: 0 additions & 1 deletion src/core/qgsvectorlayer.cpp
Expand Up @@ -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() );
Expand Down

0 comments on commit dde58ad

Please sign in to comment.