sc/source/ui/view/viewdata.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 330cc89931778b5d2ad94c954e0cb879183bac63 Author: Henry Castro <hcas...@collabora.com> AuthorDate: Tue May 16 09:50:20 2023 -0400 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Wed May 17 19:29:06 2023 +0200 lok: sc: reset RTL if it is changed Reset the LOKSpecialFlags, otherwise the selection engine select wrong lines. Signed-off-by: Henry Castro <hcas...@collabora.com> Change-Id: I94e33cc3e293330d9a3480bd3838a20c1d94d15f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151841 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Andras Timar <andras.ti...@collabora.com> diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx index 26a765eaa73a..d55cd50c1384 100644 --- a/sc/source/ui/view/viewdata.cxx +++ b/sc/source/ui/view/viewdata.cxx @@ -1622,8 +1622,8 @@ void ScViewData::SetEditEngine( ScSplitPos eWhich, pEditView[eWhich]->SetLOKSpecialOutputArea(aPTwipsRect); } - if (bLOKLayoutRTL) - pEditView[eWhich]->SetLOKSpecialFlags(LOKSpecialFlags::LayoutRTL); + if (bLOKActive && pEditView[eWhich]->HasLOKSpecialPositioning()) + pEditView[eWhich]->SetLOKSpecialFlags(bLOKLayoutRTL ? LOKSpecialFlags::LayoutRTL : LOKSpecialFlags::NONE); tools::Rectangle aOutputArea = pWin->PixelToLogic( aPixRect, GetLogicMode() ); pEditView[eWhich]->SetOutputArea( aOutputArea );