diff options
author | Faisal M. Al-Otaibi <fmalotaibi@kacst.edu.sa> | 2013-05-18 08:33:11 +0300 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2013-05-20 18:00:30 +0000 |
commit | a53efad8dea0b0d78a5ff2b84aa2f09a4c178fd6 (patch) | |
tree | 74c821159e39427898844237f36b93aa3971031e | |
parent | 514d69eff398b32639fe4d91b503740da1aac3ae (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>
-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 8f6603887c20..a51c66a910bc 100644 --- a/sc/source/ui/view/drawview.cxx +++ b/sc/source/ui/view/drawview.cxx @@ -843,6 +843,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 ); } } |