diff options
author | Tarja Sundqvist <tarja.sundqvist@digia.com> | 2012-06-08 11:33:41 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-26 08:14:17 +0200 |
commit | 0a6dc44f248c05bf179069e8cb3c2aebbeee7ac6 (patch) | |
tree | add2ce4cf3994672a3f07cb35f3789a4e82adf97 /src | |
parent | ed96d199f197b2f82fa3ad19484a809ec1c0a4a4 (diff) |
QTBUG-26035: Remove positive sign from start of string
Updated removeGroupSeparators(QLocalePrivate::CharBuff *num) so that it
removes also positive sign ('+') at the start of the string. Auto test
included.
Task-number: QTBUG-26035
Change-Id: I8e0e071d6c682d9192a8c6bb2f282510e21b3c48
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/tools/qlocale_tools.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qlocale_tools.cpp b/src/corelib/tools/qlocale_tools.cpp index 2d6b8047a6..565144bc01 100644 --- a/src/corelib/tools/qlocale_tools.cpp +++ b/src/corelib/tools/qlocale_tools.cpp @@ -249,7 +249,7 @@ bool removeGroupSeparators(QLocalePrivate::CharBuff *num) // Check that we are not missing a separator if (i < decpt_idx && (decpt_idx - i) % 4 == 0 - && !(i == 0 && c == '-')) // check for negative sign at start of string + && !(i == 0 && (c == '-' || c == '+'))) // check for negative or positive sign at start of string return false; ++i; } |