summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorFaisal M. Al-Otaibi <fmalotaibi@kacst.edu.sa>2013-05-18 08:33:11 +0300
committerLior Kaplan <kaplanlior@gmail.com>2013-05-22 02:01:30 +0300
commit6aae162ce83f61b11aab3fcd74a8274657bb474f (patch)
treedc054f2b1b9c493f7cf60658e7d796603a28ffe9 /sc/source/ui
parent875867f38271592d2d32e5833a53149cc45b717f (diff)
fdo#63878 fix the zoom bug on RTL sheet
fix the X position after check if the sheet are RTL Change-Id: Icbb9ce44508698e0f03898b202e033c07ae2de70 Reviewed-on: https://gerrit.libreoffice.org/3954 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com> (cherry picked from commit a53efad8dea0b0d78a5ff2b84aa2f09a4c178fd6)
Diffstat (limited to 'sc/source/ui')
-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 6900932fa56a..dc9978eb78ce 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( pDoc->IsNegativePage( GetTab() ) )
+ aGridOff.setX( aCurPosHmm.getX() + aOldPos.getX() );
pObj->SetGridOffset( aGridOff );
}
}