Skip to content
Permalink
Browse files
Clone more members in raster layer
  • Loading branch information
pblottiere committed May 18, 2017
1 parent f92a38c commit 4ce17f5da5040a3a95208799c60dad4306004f15
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/core/raster/qgsrasterlayer.cpp
@@ -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;
}

0 comments on commit 4ce17f5

Please sign in to comment.