summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2014-08-27 20:42:48 +0200
committerAndrzej Hunt <andrzej.hunt@collabora.com>2014-08-30 21:37:16 +0200
commit1d48c84f2d5f3efa9106914add7a5f94c77b64cf (patch)
tree860654ba8af8b40f02f51f07ec40aff4cf15aa53
parentf71b7b21554fdbe4696f55f8236ac55ea842e318 (diff)
Don't use UpdateVisibleRange for calc tiled rendering.
Change-Id: Iaba02741acc280dfc4c500e0d08271b39560149b
-rw-r--r--sc/source/ui/view/gridwin4.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index ec0a52f4ec72..140a84273ad2 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -474,7 +474,13 @@ void ScGridWindow::Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, ScUpdateMod
OSL_ENSURE( ValidCol(nX2) && ValidRow(nY2), "GridWin Draw Bereich zu gross" );
- UpdateVisibleRange();
+ // We can only do this for non-tiled rendering as it manipulates
+ // maVisibleRange on the basis of what pViewData thinks is on screen,
+ // whereas for tiled rendering we are completely independent of our
+ // usual screen-rendering assumptions and therefore have already
+ // set maVisibleRange as appropriate in Paint().
+ if ( pOutDev == this )
+ UpdateVisibleRange();
if (nX2 < maVisibleRange.mnCol1 || nY2 < maVisibleRange.mnRow1)
return;