fix QTextFormat::FullWidthSelection for right-to-left text layouts
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Fri, 1 Jul 2022 19:49:23 +0000 (20:49 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Fri, 1 Jul 2022 19:49:23 +0000 (20:49 +0100)
commit65f4f717196951af5cde38ba28fa53e453fac4c2
tree8470de10756f03747a7003398ef3dd669c68213a
parentf8ba3147d05ff56bfd888b69b85b1efb2ced040e
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