summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/view/gridwin4.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index 3f7c08f401bd..d105a47a4483 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -1166,8 +1166,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);