[QGIS Commit] r10959 - trunk/qgis/src/core/composer

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Jun 19 08:09:40 EDT 2009


Author: rugginoso
Date: 2009-06-19 08:09:40 -0400 (Fri, 19 Jun 2009)
New Revision: 10959

Modified:
   trunk/qgis/src/core/composer/qgscomposerlabel.cpp
Log:
fixed a typing error.

Modified: trunk/qgis/src/core/composer/qgscomposerlabel.cpp
===================================================================
--- trunk/qgis/src/core/composer/qgscomposerlabel.cpp	2009-06-19 11:25:37 UTC (rev 10958)
+++ trunk/qgis/src/core/composer/qgscomposerlabel.cpp	2009-06-19 12:09:40 UTC (rev 10959)
@@ -68,7 +68,7 @@
     //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);



More information about the QGIS-commit mailing list