diff options
author | Dennis Francis <dennis.francis@collabora.com> | 2021-11-10 18:53:14 +0530 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2022-01-11 11:18:05 +0100 |
commit | b3ca461871a92d8d2bd1d4ee713046ee74abbcf0 (patch) | |
tree | b2ffd27c454a4233ca1e1f63e37aaa1cf293df73 | |
parent | 250aeac7434f924c82927a9de8a089e42a4fec00 (diff) |
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
-rw-r--r-- | sc/source/ui/view/gridwin4.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index 12323ed0e2aa..7dbbd94fc82a 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -1529,6 +1529,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) |