[Libreoffice-commits] core.git: Branch 'feature/tiled-editing' - sc/source
Henry Castro
hcastro at collabora.com
Thu Mar 12 03:44:59 PDT 2015
sc/source/ui/view/gridwin4.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit bfd16857d383434dd06faf78eedafd915ae55961
Author: Henry Castro <hcastro at 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)
More information about the Libreoffice-commits
mailing list