diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2011-04-14 11:08:53 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2011-04-14 11:11:15 (GMT) |
commit | 78d47f520b2c4acdf782d39311063f5d44376913 (patch) | |
tree | a51fe3eb2415e2b0dfac30a964b3d563f08d3004 /src/corelib/tools | |
parent | 2e7e8a2b805b868eade36cc44fa14bf8ca2f8c2f (diff) | |
download | Qt-78d47f520b2c4acdf782d39311063f5d44376913.zip Qt-78d47f520b2c4acdf782d39311063f5d44376913.tar.gz Qt-78d47f520b2c4acdf782d39311063f5d44376913.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
Diffstat (limited to 'src/corelib/tools')
-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; } |