diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2011-04-14 11:08:53 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2011-04-14 11:19:30 (GMT) |
commit | 6e74302238fbac8783eab36f7553eb30dc5ca352 (patch) | |
tree | 0d50664eaf6348b18c5e97d585f3e1f800f62e0a /src/corelib/tools/qlocale_mac.mm | |
parent | 95e2bf3d87543da8caabd090057da818ccf2ca4c (diff) | |
download | Qt-6e74302238fbac8783eab36f7553eb30dc5ca352.zip Qt-6e74302238fbac8783eab36f7553eb30dc5ca352.tar.gz Qt-6e74302238fbac8783eab36f7553eb30dc5ca352.tar.bz2 |
QLocale: Fixed double to currency string conversion on Mac.
This also fixes the autotest failure on mac with macDefaultLocale test.
Reviewed-by: trustme
(cherry picked from commit 78d47f520b2c4acdf782d39311063f5d44376913)
Diffstat (limited to 'src/corelib/tools/qlocale_mac.mm')
-rw-r--r-- | src/corelib/tools/qlocale_mac.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qlocale_mac.mm b/src/corelib/tools/qlocale_mac.mm index 29d9a53..52005e0 100644 --- a/src/corelib/tools/qlocale_mac.mm +++ b/src/corelib/tools/qlocale_mac.mm @@ -318,7 +318,7 @@ static QString macFormatCurrency(const QSystemLocale::CurrencyToStringArgument & break; } case QVariant::Double: { - double v = arg.value.toInt(); + double v = arg.value.toDouble(); value = CFNumberCreate(NULL, kCFNumberDoubleType, &v); break; } |