sc/source/ui/view/gridwin.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b9fe22a7be3c3e9bb9ae4adea812c0ea9f78d5bc
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Tue Apr 4 16:18:24 2023 -0400
Commit:     Aron Budea <aron.bu...@collabora.com>
CommitDate: Tue May 2 22:51:54 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>
    (cherry picked from commit 27dc2814941423d202053cf65bbf755e403c6044)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150172
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Aron Budea <aron.bu...@collabora.com>

diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 7dcd718fd1b6..9c63aafe70e0 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -6555,7 +6555,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) );

Reply via email to