[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - sc/source

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


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

New commits:
commit 0618ebfa88b1b3eca11f40c173a53680cd41dedd
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>
    (cherry picked from commit 5bff7f52075eb3ffe931d1779681262e1820a859)
    
    Signed-off-by: Eike Rathke <erack at redhat.com>

diff --git a/sc/source/ui/view/drawview.cxx b/sc/source/ui/view/drawview.cxx
index 6900932..7e4555d 100644
--- a/sc/source/ui/view/drawview.cxx
+++ b/sc/source/ui/view/drawview.cxx
@@ -791,6 +791,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