[Libreoffice-commits] core.git: sc/source
Faisal M. Al-Otaibi
fmalotaibi at kacst.edu.sa
Mon May 20 11:00:49 PDT 2013
sc/source/ui/view/drawview.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit a53efad8dea0b0d78a5ff2b84aa2f09a4c178fd6
Author: Faisal M. Al-Otaibi <fmalotaibi at kacst.edu.sa>
Date: Sat May 18 08:33:11 2013 +0300
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 at suse.com>
Tested-by: Noel Power <noel.power at suse.com>
diff --git a/sc/source/ui/view/drawview.cxx b/sc/source/ui/view/drawview.cxx
index 8f66038..a51c66a 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 );
}
}
More information about the Libreoffice-commits
mailing list