fix QTextFormat::FullWidthSelection for right-to-left text layouts
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Mon, 13 Jun 2022 18:00:47 +0000 (19:00 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Mon, 13 Jun 2022 18:00:47 +0000 (19:00 +0100)
commit11095fa6b323d4f847850e1b0882b35101e38b03
tree6aa04e2feceb7703a6d86d81a43d3efa1d42c057
parent769f7c4c6d0ba90cd8d35f6c53bedde32d64a7c7
fix QTextFormat::FullWidthSelection for right-to-left text layouts

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=a7894855f2f59028
Last-Update: 2021-08-15

Using the QTextFormat::FullWidthSelection property to select a line
would previously not take into account right-to-left text layouts.

With this patch, the whole line should now be drawn correctly for both
left-to-right, and right-to-left layouts.

Gbp-Pq: Name full_width_selection_rtl.diff
src/gui/text/qtextlayout.cpp