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-09-29 06:30:46 +0100
commitf3e1e93df5fe7290b9486cb2d06feb40fae4bbe6 (patch)
tree5a8edecf61b3cdc14e64d5fd4beb5ff4feb62175
parente87d0e50777c9c5e0f6922b97cfcdf60b47610df (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 cae7e98fec67..58f7fe3980c8 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -464,7 +464,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;