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

New commits:
commit e12e9960fb759f2155896a175b5d45754de58396
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Tue Apr 4 16:18:24 2023 -0400
Commit:     Henry Castro <hcas...@collabora.com>
CommitDate: Mon Jun 12 19:32:58 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>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152906
    Tested-by: Jenkins

diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index e68300c0b369..6efcc68453a2 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -6637,7 +6637,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