qt6-bb10/tests/auto/gui/text/qtextlayout
Eskil Abrahamsen Blomfeldt c73cc95ba7 Don't count overflowing inline image height to previous line
In the line break algorithm, we try filling characters and
objects onto a text line until we see an overflow. We then
keep the state *before* the overflow as the current line and
move to the next.

However, for inline images we would store its height to the
current state before checking if it overflowed. So if the
inline image did cause an overflow it would be counted
towards the height of the preceding line in addition to the
line where it actually ended up.

[ChangeLog][Text] Fixed an issue which could cause the
height of a word-wrapped text line to grow if the immediate
line after it began with an inline image.

Pick-to: 6.5 5.15
Fixes: QTBUG-130980
Change-Id: I68494b49059e5e35349cbde77aefc64abeb69697
Reviewed-by: Lars Knoll <lars@knoll.priv.no>
(cherry picked from commit 7b024cc1749494114fffc3c434b58846707a64af)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2024-11-19 07:02:49 +00:00
..
.gitignore
CMakeLists.txt CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
tst_qtextlayout.cpp Don't count overflowing inline image height to previous line 2024-11-19 07:02:49 +00:00