diff options
author | Henry Castro <hcastro@collabora.com> | 2022-07-04 14:57:18 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2022-07-08 16:56:50 +0200 |
commit | ca7fa700b10ea8947333ec72f763c3d47a4b2e57 (patch) | |
tree | 5561d4cf74390522fdd1fe5be62d9a95a29103fa | |
parent | 0138dde8fd01d63a789fee8ab146691f66e3066a (diff) |
sc: lok: fix offset other edit view
Multiple view case.
Signed-off-by: Henry Castro <hcastro@collabora.com>
Change-Id: I8049f2f36438e77beb5fe41399007ced0d500efa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136812
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ash@collabora.com>
(cherry picked from commit 59bee366f9df6df26cc9b92b19997fc7f5112c7d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136917
Tested-by: Jenkins
-rw-r--r-- | sc/source/ui/view/gridwin4.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index 80460373128c..e36bf6765803 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -1168,8 +1168,9 @@ void ScGridWindow::DrawContent(OutputDevice &rDevice, const ScTableInfo& rTableI // to be tweaked temporarily to match the current view's zoom. SuppressEditViewMessagesGuard aGuard(*pOtherEditView); - pOtherEditView->SetOutputArea(rDevice.PixelToLogic(aEditRect)); - pOtherEditView->Paint(rDevice.PixelToLogic(aEditRect), &rDevice); + aEditRect = rDevice.PixelToLogic(aEditRect); + aEditRect.Intersection(pOtherEditView->GetOutputArea()); + pOtherEditView->Paint(aEditRect, &rDevice); // Rollback the mapmode and 'output area'. rOtherWin.SetMapMode(aOrigMapMode); |