fix QTextFormat::FullWidthSelection for right-to-left text layouts
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)
committerRaspbian forward porter <root@raspbian.org>
Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)
commit6e9bee5a99c4fc98a63cc06d7d153b76bfaacc40
tree3274f51435b779e0e9d46c4dc6d4f080fee90c69
parentb69b4f9309f4d073221e2d6567aca158dd156061
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