sc/source/ui/view/gridwin4.cxx | 8 ++++++++ 1 file changed, 8 insertions(+)
New commits: commit bfd16857d383434dd06faf78eedafd915ae55961 Author: Henry Castro <hcas...@collabora.com> Date: Thu Mar 12 11:34:35 2015 +0100 sc tiled rendering: Avoid warnings about a non-existing SdrPaintWindow. Change-Id: Idb9695515d9a829fb63ea37e02f4bf2b111bf6bf diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index b3cf5c1..5949ff8 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -957,7 +957,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) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits