Skip to content

Commit

Permalink
[composer] Always evaluate label expressions (fix #9342)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 22, 2014
1 parent 58403d3 commit 2e4fbc2
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/core/composer/qgscomposerlabel.cpp
Expand Up @@ -66,17 +66,7 @@ void QgsComposerLabel::paint( QPainter* painter, const QStyleOptionGraphicsItem*
double penWidth = pen().widthF();
QRectF painterRect( penWidth + mMargin, penWidth + mMargin, rect().width() - 2 * penWidth - 2 * mMargin, rect().height() - 2 * penWidth - 2 * mMargin );

QString textToDraw;
if ( mComposition->atlasMode() != QgsComposition::AtlasOff )
{
//render text with expressions evaluated
textToDraw = displayText();
}
else
{
//not outputing or using an atlas preview, so render text without expressions evaluated
textToDraw = mText;
}
QString textToDraw = displayText();

if ( mHtmlState )
{
Expand Down

0 comments on commit 2e4fbc2

Please sign in to comment.