We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent f5632b6 commit 9ed1803Copy full SHA for 9ed1803
src/app/qgisapp.cpp
@@ -6187,6 +6187,16 @@ void QgisApp::duplicateLayers( QList<QgsMapLayer *> lyrList )
6187
copyStyle( selectedLyr );
6188
pasteStyle( dupLayer );
6189
6190
+ QgsVectorLayer* vLayer = dynamic_cast<QgsVectorLayer*>( selectedLyr );
6191
+ QgsVectorLayer* vDupLayer = dynamic_cast<QgsVectorLayer*>( dupLayer );
6192
+ if ( vLayer && vDupLayer )
6193
+ {
6194
+ foreach( const QgsVectorJoinInfo join, vLayer->vectorJoins() )
6195
6196
+ vDupLayer->addJoin( join );
6197
+ }
6198
6199
+
6200
// always set duplicated layers to not visible
6201
// so layer can be configured before being turned on,
6202
// and no map canvas refresh needed when doing multiple duplications
0 commit comments