Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed a typing error.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10959 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rugginoso committed Jun 19, 2009
1 parent c24efc4 commit 30de6af
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 30de6af

Please sign in to comment.