summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2023-04-19 09:50:56 -0400
committerHenry Castro <hcastro@collabora.com>2023-05-21 00:35:40 +0200
commitb7ed0f2366f6ba09ab5c3f1af169020effe59a9e (patch)
tree85d14632c227a52ae0482c617a04c96a66e99e49 /sc
parent1ede9695bbbddaaf1561364d7c2d2b5c30c207d3 (diff)
lok: sc: fix layout RTL
The function "IsRightToLeft" fails in Hebrew language when Calc has a layout RTL, add additional condition to check the layout. Signed-off-by: Henry Castro <hcastro@collabora.com> Change-Id: If3972b80770a7aa6073881487e411a34cc6871d1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150758 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151973
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/viewdata.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index ae68a5dfc725..29161ac7e01b 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -1527,6 +1527,7 @@ void ScViewData::SetEditEngine( ScSplitPos eWhich,
bool bLOKActive = comphelper::LibreOfficeKit::isActive();
bool bLOKPrintTwips = bLOKActive && comphelper::LibreOfficeKit::isCompatFlagSet(
comphelper::LibreOfficeKit::Compat::scPrintTwipsMsgs);
+ bool bLOKLayoutRTL = bLOKActive && bLayoutRTL;
bool bWasThere = false;
if (pEditView[eWhich])
@@ -1625,6 +1626,9 @@ void ScViewData::SetEditEngine( ScSplitPos eWhich,
pEditView[eWhich]->SetLOKSpecialOutputArea(aPTwipsRect);
}
+ if (bLOKLayoutRTL)
+ pEditView[eWhich]->SetLOKSpecialFlags(LOKSpecialFlags::LayoutRTL);
+
tools::Rectangle aOutputArea = pWin->PixelToLogic( aPixRect, GetLogicMode() );
pEditView[eWhich]->SetOutputArea( aOutputArea );