diff options
Diffstat (limited to 'src/corelib/text/qlocale.cpp')
-rw-r--r-- | src/corelib/text/qlocale.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/text/qlocale.cpp b/src/corelib/text/qlocale.cpp index 6dbec8ba33..146ece23a6 100644 --- a/src/corelib/text/qlocale.cpp +++ b/src/corelib/text/qlocale.cpp @@ -3885,7 +3885,7 @@ bool QLocaleData::numberToCLocale(QStringView s, QLocale::NumberOptions number_o if (decpt_idx != -1 || exponent_idx != -1) return false; decpt_idx = idx; - } else if (out == 'e' || out == 'E') { + } else if (out == 'e') { exponent_idx = idx; } @@ -3932,7 +3932,7 @@ bool QLocaleData::numberToCLocale(QStringView s, QLocale::NumberOptions number_o // don't add the group separator ++idx; continue; - } else if (out == '.' || out == 'e' || out == 'E') { + } else if (out == '.' || idx == exponent_idx) { // check distance from the last separator // ### FIXME: Some locales allow other groupings! // See https://en.wikipedia.org/wiki/Thousands_separator |