diff options
author | Faisal M. Al-Otaibi <fmalotaibi@kacst.edu.sa> | 2013-05-05 09:49:30 +0300 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-05-06 15:45:41 +0200 |
commit | 0618ebfa88b1b3eca11f40c173a53680cd41dedd (patch) | |
tree | 14e044826b53965ccaaa72bca7b8800809e01488 | |
parent | f577975db513c2108600a1fabd1f7560c95b3db2 (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>
(cherry picked from commit 5bff7f52075eb3ffe931d1779681262e1820a859)
Signed-off-by: Eike Rathke <erack@redhat.com>
-rw-r--r-- | sc/source/ui/view/drawview.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/view/drawview.cxx b/sc/source/ui/view/drawview.cxx index 6900932fa56a..7e4555dd0ca7 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 ); } } |