diff options
author | Henry Castro <hcastro@collabora.com> | 2015-03-12 11:34:35 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-16 09:38:08 +0100 |
commit | 5666552a07c0f742087cf987679ffeb5fa99b1a4 (patch) | |
tree | a42f73c91af20bbc92cc06590dd242acac164067 /sc | |
parent | ab27a77aa82bd0bcad59652b76a5c65e5e946cea (diff) |
sc tiled rendering: Avoid warnings about a non-existing SdrPaintWindow.
Change-Id: Idb9695515d9a829fb63ea37e02f4bf2b111bf6bf
Diffstat (limited to 'sc')
-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) |