Skip to content

Commit

Permalink
fixed a typing error.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@10959 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rugginoso committed Jun 19, 2009
1 parent 730ad81 commit 7b96fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/composer/qgscomposerlabel.cpp
Expand Up @@ -68,7 +68,7 @@ void QgsComposerLabel::setText( const QString& text )
//check if there is a bracket just after $CURRENT_DATE
QString formatText;
int openingBracketPos = mText.indexOf("(", currentDatePos);
int closingBracketPos = mText.indexOf(")", openingBracket + 1);
int closingBracketPos = mText.indexOf(")", openingBracketPos + 1);
if(openingBracketPos != -1 && closingBracketPos != -1 && (closingBracketPos - openingBracketPos) > 1 )
{
formatText = mText.mid(openingBracketPos + 1, closingBracketPos - openingBracketPos - 1);
Expand Down

0 comments on commit 7b96fae

Please sign in to comment.