sc/source/ui/view/viewdata.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit f5d668d50ec409051165a3044c3afd89985e365f Author: Henry Castro <hcas...@collabora.com> AuthorDate: Tue May 16 09:50:20 2023 -0400 Commit: Henry Castro <hcas...@collabora.com> CommitDate: Tue Jun 20 15:07:53 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> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153323 diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx index 8970606face0..e400f1b314ff 100644 --- a/sc/source/ui/view/viewdata.cxx +++ b/sc/source/ui/view/viewdata.cxx @@ -1626,8 +1626,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 );