diff options
author | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-06-26 17:06:58 +0100 |
---|---|---|
committer | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-08-11 09:40:34 +0200 |
commit | 4758f53c2396220493bf2e75f7e0ded6f7d043d0 (patch) | |
tree | 3a58dcfc3b0ed408aa5271495c896ad0e26df454 /sc | |
parent | 05dfc5de62eb2fc52e533134c153742190eac7e0 (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
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/gridwin4.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index f74ef67c39d8..cb7358b134f4 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -384,6 +384,10 @@ void ScGridWindow::Paint( const Rectangle& rRect, OutputDevice* pOutDev ) nScrY += LogicToPixel( Point( 0, pDoc->GetRowHeight( nY2, nTab ) ), maPaintMapMode ).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; } |