[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    qt-copy/src/tools
From:       Antonio Larrosa Jimenez <larrosa () kde ! org>
Date:       2003-12-31 11:59:47
Message-ID: 20031231115947.8A08E2EFA () office ! kde ! org
[Download RAW message or body]

CVS commit by antlarr: 

This fixes the parsing of QString::sprintf("%*.*g",(int),(int),(double)), thus
fixing problems with QLcdNumber::display(double) among others, and thus fixing
problems with KSysguard's Multimeter which was the one I wanted to fix :).
The patch was approved by qt-bugs (Issue N38349) and will be included in the
next release of Qt.


  M +7 -7      qstring.cpp   1.61


--- qt-copy/src/tools/qstring.cpp  #1.60:1.61
@@ -2476,5 +2476,4 @@ QString &QString::sprintf( const char* c
                 precision = precision_str.toInt();
             }
-        }
         else if (*c == '*') {
             precision = va_arg(ap, int);
@@ -2483,4 +2482,5 @@ QString &QString::sprintf( const char* c
             ++c;
         }
+        }
 
         if (*c == '\0') {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic