summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2014-06-26 17:06:58 +0100
committerAndrzej Hunt <andrzej.hunt@collabora.com>2014-09-29 06:29:38 +0100
commit678434a7426b27e068691cf5ae2f82374ddb0a59 (patch)
tree76ea339d413ed74fc0749893b368163a3d322043
parent0684631240cfeba65c78657cbac946feb92eaf35 (diff)
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
-rw-r--r--sc/source/ui/view/gridwin4.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index 7a8e10a7c0f4..a890abc8ab34 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -377,6 +377,10 @@ void ScGridWindow::Paint( const Rectangle& rRect, OutputDevice* pOutDev )
ScViewData::AddPixelsWhile( nScrY, aPixRect.Bottom(), nY2, MAXROW, nPPTY, pDoc, nTab);
}
+ // 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;
}