diff options
author | Henry Castro <hcastro@collabora.com> | 2017-05-22 09:15:50 -0400 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2017-05-29 17:11:16 +0200 |
commit | 60eede9988bcc37f3683a93bed8ffec23ef3bcc8 (patch) | |
tree | cc4977bb01188771266ae306ca549fbfed871bc7 /sc | |
parent | 5d2091029b6e51318e296d092dcd92b7a5f14ff5 (diff) |
sc lok: prevent wrong assignment aEnd.Y()
In tiled rendering case, the window size is small, and the
assignment aEnd.Y() will cause wrong invalidation area.
However, at this time will never happen because MAXTILEDROW < MAXROW,
so better to avoid in case the last row meets the condition.
Conflicts:
sc/source/ui/view/tabview3.cxx
Reviewed-on: https://gerrit.libreoffice.org/37908
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Henry Castro <hcastro@collabora.com>
Conflicts:
sc/source/ui/view/tabview3.cxx
Change-Id: I9c6af57c0342f173195bb2f3d8ac5ef0f3964911
Reviewed-on: https://gerrit.libreoffice.org/37915
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/tabview3.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx index 259b5fe2dd89..2695f013f6df 100644 --- a/sc/source/ui/view/tabview3.cxx +++ b/sc/source/ui/view/tabview3.cxx @@ -2294,7 +2294,7 @@ void ScTabView::PaintArea( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCRO aEnd.Y() -= 1; // #i85232# include area below cells (could be done in GetScrPos?) - if ( eMode == SC_UPDATE_ALL && nRow2 >= MAXROW ) + if ( eMode == SC_UPDATE_ALL && nRow2 >= MAXROW && !bIsTiledRendering ) aEnd.Y() = pGridWin[i]->GetOutputSizePixel().Height(); aStart.X() -= nLayoutSign; // include change marks |