Rebased ref, commits from common ancestor: commit 27dc2814941423d202053cf65bbf755e403c6044 Author: Henry Castro <hcas...@collabora.com> AuthorDate: Tue Apr 4 16:18:24 2023 -0400 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Thu Apr 6 15:59:05 2023 +0200
lok: sc: fix RTL auto fill rectangle In the RTL case, the positive X axis is changed from right to left, otherwise the auto fill rectangle overlay will get negative coordinates. Signed-off-by: Henry Castro <hcas...@collabora.com> Change-Id: If4918f02d185fc19e5ab4e8a273c443c69dc7206 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150034 Reviewed-by: Andras Timar <andras.ti...@collabora.com> Tested-by: Andras Timar <andras.ti...@collabora.com> diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index e5e384fbdd23..47370ee4f4a4 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -6566,7 +6566,7 @@ void ScGridWindow::UpdateAutoFillOverlay() tools::Long nSizeYPix; mrViewData.GetMergeSizePixel( nX, nY, nSizeXPix, nSizeYPix ); - if (bLayoutRTL) + if (bLayoutRTL && !comphelper::LibreOfficeKit::isActive()) aFillPos.AdjustX( -(nSizeXPix - 2 + (aFillHandleSize.Width() / 2)) ); else aFillPos.AdjustX(nSizeXPix - (aFillHandleSize.Width() / 2) );