mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Fix join information in clone
This commit is contained in:
parent
51a52293ae
commit
94fde118a5
@ -202,7 +202,8 @@ QgsVectorLayer *QgsVectorLayer::clone() const
|
||||
Q_FOREACH ( const QgsVectorLayerJoinInfo &join, joins )
|
||||
{
|
||||
// do not copy join information for auxiliary layer
|
||||
if ( auxiliaryLayer() && auxiliaryLayer()->id() != join.joinLayerId() )
|
||||
if ( !auxiliaryLayer()
|
||||
|| ( auxiliaryLayer() && auxiliaryLayer()->id() != join.joinLayerId() ) )
|
||||
layer->addJoin( join );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user