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 3994c98 commit 78ea81aCopy full SHA for 78ea81a
src/core/composer/qgscomposerlabel.cpp
@@ -45,6 +45,12 @@ QgsComposerLabel::QgsComposerLabel( QgsComposition *composition ):
45
//default to a 10 point font size
46
mFont.setPointSizeF( 10 );
47
48
+ if ( mComposition && mComposition->atlasMode() == QgsComposition::PreviewAtlas )
49
+ {
50
+ //a label added while atlas preview is enabled needs to have the expression context set,
51
+ //otherwise fields in the label aren't correctly evaluated until atlas preview feature changes (#9457)
52
+ setExpressionContext( mComposition->atlasComposition().currentFeature(), mComposition->atlasComposition().coverageLayer() );
53
+ }
54
}
55
56
QgsComposerLabel::~QgsComposerLabel()
0 commit comments