Kaydet (Commit) 9411d4d5 authored tarafından Faisal M. Al-Otaibi's avatar Faisal M. Al-Otaibi Kaydeden (comit) Petr Mladek

fdo#63878 fix the zoom problem when the sheet are RTL

Change-Id: Ie451b7a84b5481e9209c5b6d6d439844de5082fd
Reviewed-on: https://gerrit.libreoffice.org/3789Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: 's avatarEike Rathke <erack@redhat.com>
(cherry picked from commit 5bff7f52)
Signed-off-by: 's avatarEike Rathke <erack@redhat.com>
üst 9679b6ab
......@@ -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 );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment