sc/source/ui/view/gridwin4.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit cd7abd3e2c6bb28ecfeb1acef675280cfe438e3e Author: Dennis Francis <[email protected]> AuthorDate: Wed Nov 10 18:53:14 2021 +0530 Commit: Dennis Francis <[email protected]> CommitDate: Tue Jan 25 09:37:06 2022 +0100 lokCalcRTL: h-flip the "combined" tile This h-flip is needed because the tile containing cell A1 will have the coordinates (0, 0). Further aim is to have document coordinates for all tile messages and tile invalidation messages. The LOK client should be able to map the document coordinates to the correct view coordinates. In the lok client we also need to h-flip the "regular" tiles at the tile position. Change-Id: Iaf89afeb89f916cb490800ee5d34c4780125f3a0 (cherry picked from commit b3ca461871a92d8d2bd1d4ee713046ee74abbcf0) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128890 Tested-by: Jenkins Reviewed-by: Dennis Francis <[email protected]> diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index f92b92096766..8c9e4e01507c 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -1566,6 +1566,13 @@ void ScGridWindow::PaintTile( VirtualDevice& rDevice, if (ScDrawView* pDrawView = mrViewData.GetScDrawView()) pDrawView->resetGridOffsetsForAllSdrPageViews(); } + + if (bLayoutRTL) + { + Bitmap aCellBMP = rDevice.GetBitmap(Point(0, 0), Size(nOutputWidth, nOutputHeight)); + aCellBMP.Mirror(BmpMirrorFlags::Horizontal); + rDevice.DrawBitmap(Point(0, 0), Size(nOutputWidth, nOutputHeight), aCellBMP); + } } void ScGridWindow::LogicInvalidate(const tools::Rectangle* pRectangle)
