Skip to content

Commit

Permalink
Clone more members in raster layer
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed May 18, 2017
1 parent f92a38c commit 4ce17f5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/raster/qgsrasterlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,12 @@ QgsRasterLayer *QgsRasterLayer::clone() const
{
QgsRasterLayer *layer = new QgsRasterLayer( source(), originalName(), mProviderKey );
QgsMapLayer::clone( layer );
layer->setRenderer( renderer()->clone() );

for ( int i = 0; i < mPipe.size(); i++ )
{
layer->pipe()->set( mPipe.at( i )->clone() );
}

return layer;
}

Expand Down

0 comments on commit 4ce17f5

Please sign in to comment.