From kde-commits Wed Dec 31 11:59:47 2003 From: Antonio Larrosa Jimenez Date: Wed, 31 Dec 2003 11:59:47 +0000 To: kde-commits Subject: qt-copy/src/tools Message-Id: <20031231115947.8A08E2EFA () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=107287202213067 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') {