sc/source/ui/view/gridwin4.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 59bee366f9df6df26cc9b92b19997fc7f5112c7d Author: Henry Castro <hcas...@collabora.com> AuthorDate: Mon Jul 4 14:57:18 2022 -0400 Commit: Henry Castro <hcas...@collabora.com> CommitDate: Fri Jul 8 15:30:44 2022 +0200 sc: lok: fix offset other edit view Multiple view case. Signed-off-by: Henry Castro <hcas...@collabora.com> Change-Id: I8049f2f36438e77beb5fe41399007ced0d500efa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136812 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Ashod Nakashian <a...@collabora.com> diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index 481237edba9e..fcbe71446688 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -1151,8 +1151,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'. pOtherWin->SetMapMode(aOrigMapMode);