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 c24efc4 commit 30de6afCopy full SHA for 30de6af
src/core/composer/qgscomposerlabel.cpp
@@ -68,7 +68,7 @@ void QgsComposerLabel::setText( const QString& text )
68
//check if there is a bracket just after $CURRENT_DATE
69
QString formatText;
70
int openingBracketPos = mText.indexOf("(", currentDatePos);
71
- int closingBracketPos = mText.indexOf(")", openingBracket + 1);
+ int closingBracketPos = mText.indexOf(")", openingBracketPos + 1);
72
if(openingBracketPos != -1 && closingBracketPos != -1 && (closingBracketPos - openingBracketPos) > 1 )
73
{
74
formatText = mText.mid(openingBracketPos + 1, closingBracketPos - openingBracketPos - 1);
0 commit comments