[Libreoffice-commits] core.git: sc/source

Faisal M. Al-Otaibi fmalotaibi at kacst.edu.sa
Mon May 6 06:39:49 PDT 2013


 sc/source/ui/view/drawview.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 5bff7f52075eb3ffe931d1779681262e1820a859
Author: Faisal M. Al-Otaibi <fmalotaibi at kacst.edu.sa>
Date:   Sun May 5 09:49:30 2013 +0300

    fdo#63878 fix the zoom problem when the sheet are RTL
    
    Change-Id: Ie451b7a84b5481e9209c5b6d6d439844de5082fd
    Reviewed-on: https://gerrit.libreoffice.org/3789
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Eike Rathke <erack at redhat.com>

diff --git a/sc/source/ui/view/drawview.cxx b/sc/source/ui/view/drawview.cxx
index e249e8c..2fe614c 100644
--- a/sc/source/ui/view/drawview.cxx
+++ b/sc/source/ui/view/drawview.cxx
@@ -782,6 +782,9 @@ void ScDrawView::SyncForGrid( SdrObject* pObj )
         Point aCurPos =  pViewData->GetScrPos(  aOldStt.Col(), aOldStt.Row(), eWhich, sal_True );
         Point aCurPosHmm = pGridWin->PixelToLogic(aCurPos, aDrawMode );
         Point aGridOff = ( aCurPosHmm - aOldPos );
+        // fdo#63878 Fix the X position for RTL Sheet
+        if( aGridOff.getX() < 0 )
+            aGridOff.setX( aCurPosHmm.getX() + aOldPos.getX() );
         pObj->SetGridOffset( aGridOff );
     }
 }


More information about the Libreoffice-commits mailing list