From 60f23b885ad86b7f5260f32999aaa260aa1e4bbe Mon Sep 17 00:00:00 2001 From: Andrzej Hunt Date: Thu, 26 Jun 2014 17:06:58 +0100 Subject: Ensure we actually render all cells in the selected area. Only cells within maVisibleRange are rendered, even if we request a larger area (and maVisibleRange is otherwise not updated for tiled rendering). Hence we should explicitly set it here. Change-Id: I399be9df1f266a2b3d32a95483960b21f561c6b3 --- sc/source/ui/view/gridwin4.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index c30112733961..a0ba523a31ac 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -383,6 +383,10 @@ void ScGridWindow::Paint( const Rectangle& rRect, OutputDevice* pOutDev ) nScrY += pOutDev->LogicToPixel( Point( 0, pDoc->GetRowHeight( nY2, nTab ) ) ).getY(); } + // We specifically need to set the visible range here -- by default it is + // set in UpdateVisibleRange which however uses the viewdata, which is + // completely irrelevant for tiled rendering. + maVisibleRange.set( nX1, nY1, nX2, nY2 ); Draw( nX1,nY1,nX2,nY2, SC_UPDATE_MARKS, pOutDev ); // nicht weiterzeichnen bIsInPaint = false; } -- cgit