diff options
author | Dennis Francis <dennis.francis@collabora.com> | 2021-11-10 18:53:14 +0530 |
---|---|---|
committer | Dennis Francis <dennis.francis@collabora.com> | 2022-01-25 09:37:06 +0100 |
commit | cd7abd3e2c6bb28ecfeb1acef675280cfe438e3e (patch) | |
tree | 64ffe9f3b740de40085689868e56e9542ed3a55e /sc | |
parent | 97cf76e9197a244a7d12f1f0a52074ccf36685e2 (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
(cherry picked from commit b3ca461871a92d8d2bd1d4ee713046ee74abbcf0)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128890
Tested-by: Jenkins
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
Diffstat (limited to 'sc')
-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 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) |