sc/source/ui/view/gridwin4.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit ca7fa700b10ea8947333ec72f763c3d47a4b2e57 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 16:56:50 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> (cherry picked from commit 59bee366f9df6df26cc9b92b19997fc7f5112c7d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136917 Tested-by: Jenkins 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);