summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaisal M. Al-Otaibi <fmalotaibi@kacst.edu.sa>2013-05-05 09:49:30 +0300
committerEike Rathke <erack@redhat.com>2013-05-06 13:39:30 +0000
commit5bff7f52075eb3ffe931d1779681262e1820a859 (patch)
treed9c23839c020d7880e27fddfd46057ef0ce13e83
parent759c301785a703188b52d01ded2f96ff3f6eb7f9 (diff)
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@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
-rw-r--r--sc/source/ui/view/drawview.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/view/drawview.cxx b/sc/source/ui/view/drawview.cxx
index e249e8c884dc..2fe614ce90eb 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 );
}
}