summaryrefslogtreecommitdiffstats
path: root/src/corelib/serialization/qdatastream.cpp
diff options
context:
space:
mode:
authorEirik Aavitsland <eirik.aavitsland@qt.io>2024-02-20 08:07:38 +0100
committerEirik Aavitsland <eirik.aavitsland@qt.io>2024-02-20 16:27:20 +0100
commita43d86fe1c0bc9d352f67c134a9ee5f754aea5e6 (patch)
treea66ebd2dde0bc7bd7f15d65aab9f2a017e65d58d /src/corelib/serialization/qdatastream.cpp
parent9362e4f3fa7c42b9d76fd5b4dd504e749b3bcaab (diff)
QPainter: fix assert when drawing bitmaps at very near to .5 coord
The code assumed that the rounding of a floating point value, and the rounding of the sum of that value and an integer, would always snap in the same direction. But because of accuracy limits (independently of the rounding function employed), that is not always the case for fractions very near to .5. Fixes: QTBUG-122451 Pick-to: 6.7 6.6 6.5 6.2 5.15 Change-Id: I0825d42e6be7f6e3397760a5e9be5dddca42dcdc Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/corelib/serialization/qdatastream.cpp')
0 files changed, 0 insertions, 0 deletions