Skip to content

Commit

Permalink
Add a safe guard
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Oct 9, 2017
1 parent e14c5a2 commit 27cbc91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/qgsvectorlayer.cpp
Expand Up @@ -266,7 +266,8 @@ QgsVectorLayer *QgsVectorLayer::clone() const

layer->setEditFormConfig( editFormConfig() );

layer->setAuxiliaryLayer( auxiliaryLayer()->clone( layer ) );
if ( auxiliaryLayer() )
layer->setAuxiliaryLayer( auxiliaryLayer()->clone( layer ) );

return layer;
}
Expand Down

0 comments on commit 27cbc91

Please sign in to comment.