diff options
author | Andre de la Rocha <andre.rocha@qt.io> | 2019-01-08 13:00:46 +0100 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2019-01-08 16:35:03 +0000 |
commit | 81c3c66bb44c98b29a0181450ffa38a1c1fa06d9 (patch) | |
tree | 763320c8b9d793665ad3d8e1c80d9e87fbb030cb /src/gui/image/qbmphandler.cpp | |
parent | 5feac1e10cfb95e2d17658b7a1611052a4ff8d17 (diff) |
Fix PDF generation for locales using comma as decimal separator
A previous change that extended the maximum PDF size has caused the
generation of invalid PDF output when the current locale was set to
something using commas instead of points when outputting floating
point numbers through printf(). This change uses QByteArray::number()
instead, which uses points, irrespective of the current locale.
Fixes: QTBUG-72868
Fixes: QTBUG-72848
Change-Id: I292eba2d6c89b3e01957bb8c04c04bdca8ada316
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Tobias Koenig <tobias.koenig@kdab.com>
Diffstat (limited to 'src/gui/image/qbmphandler.cpp')
0 files changed, 0 insertions, 0 deletions