diff options
-rw-r--r-- | sc/source/ui/view/gridwin4.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index 6f6c65a9d3aa..87c3cab24d87 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -953,7 +953,15 @@ void ScGridWindow::PaintTile( VirtualDevice& rDevice, -fTilePosXPixel, -fTilePosYPixel, nCol1, nRow1, nCol2, nRow2, fPPTX, fPPTY); + // create a temporary SdrPaintWindow to avoid warnings + SdrPaintWindow aTemporaryPaintWindow(*pViewData->GetScDrawView(), rDevice); + SdrPageView* pSdrPageView = pViewData->GetScDrawView()->GetSdrPageView(); + pSdrPageView->AddPaintWindowToPageView(aTemporaryPaintWindow); + + // draw the content DrawContent(rDevice, aTabInfo, aOutputData, true, SC_UPDATE_ALL); + + pSdrPageView->RemovePaintWindowFromPageView(aTemporaryPaintWindow); } void ScGridWindow::LogicInvalidate(const ::vcl::Region* pRegion) |