Skip to content
Permalink
Browse files

fixed a typing error.

git-svn-id: http://svn.osgeo.org/qgis/trunk@10959 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rugginoso
rugginoso committed Jun 19, 2009
1 parent 730ad81 commit 7b96fae0fcdd0b7a9a5b6bb61b6e72023adf052e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/composer/qgscomposerlabel.cpp
@@ -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);

0 comments on commit 7b96fae

Please sign in to comment.
You can’t perform that action at this time.