diff options
author | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-06-16 16:19:56 +0100 |
---|---|---|
committer | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-08-08 21:51:15 +0200 |
commit | c3522cef7386055ee4ae56cd75a29c2512241303 (patch) | |
tree | d4633de9dc70134f68da4730f178c979f88eca89 /sc | |
parent | Render tiles from calc. (diff) | |
download | core-c3522cef7386055ee4ae56cd75a29c2512241303.tar.gz core-c3522cef7386055ee4ae56cd75a29c2512241303.zip |
Calc: Add tiled rendering device to the paint view.
This prevents the previous warnings of
SdrPageView::DrawLayer: Creating temporary SdrPageWindow (ObjectContact), \
this should never be needed
Change-Id: I76cb7c9ed4d45bfcbd297f697314309b4e036f80
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/gridwin4.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index 95042d5cca1f..f882ab0d76f9 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -34,6 +34,7 @@ #include "gridwin.hxx" #include "viewdata.hxx" +#include "drawview.hxx" #include "output.hxx" #include "document.hxx" #include "attrib.hxx" @@ -900,7 +901,19 @@ void ScGridWindow::PaintTile( VirtualDevice& rDevice, aMapMode.SetScaleY( scaleY ); rDevice.SetMapMode( aMapMode ); + ScTabViewShell* pTabViewSh = pViewData->GetViewShell(); + SdrView* pDrawView = pTabViewSh->GetScDrawView(); + if ( pDrawView ) + { + pDrawView->AddWindowToPaintView( &rDevice ); + } + Draw( 0, 0, 3, 3, SC_UPDATE_ALL, &rDevice ); + + if ( pDrawView ) + { + pDrawView->DeleteWindowFromPaintView( &rDevice ); + } } void ScGridWindow::CheckNeedsRepaint() |