We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87998f7 commit 27696e8Copy full SHA for 27696e8
src/core/qgsproject.cpp
@@ -2786,11 +2786,18 @@ QList<QgsMapLayer *> QgsProject::addMapLayers(
2786
bool addToLegend,
2787
bool takeOwnership )
2788
{
2789
- const QList<QgsMapLayer *> myResultList = mLayerStore->addMapLayers( layers, takeOwnership );
+ const QList<QgsMapLayer *> myResultList { mLayerStore->addMapLayers( layers, takeOwnership ) };
2790
if ( !myResultList.isEmpty() )
2791
2792
+ // Update transform context
2793
+ for ( auto &l : myResultList )
2794
+ {
2795
+ l->setTransformContext( transformContext() );
2796
+ }
2797
if ( addToLegend )
2798
2799
emit legendLayersAdded( myResultList );
2800
2801
}
2802
2803
if ( mAuxiliaryStorage )
0 commit comments