summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2017-05-17 16:19:47 -0400
committerJan Holesovsky <kendy@collabora.com>2017-05-18 12:24:03 +0200
commit3f5143f5b8699afd75dd80cc69e5a9c021e7c5ac (patch)
tree805c0f17bf5a75a309e63b6acdf007117e2ca381 /sc
parent9fb691adb459bf027aa71ef4bb1b7df0d987c099 (diff)
sc lok: fix wrong assignment aEnd.X()
In tiled rendering case, the window size is small and the end point will be cut, then result wrong invalidation area Conflicts: sc/source/ui/view/tabview3.cxx Change-Id: Ief49c5f47bbc69485354ab396c7508db9548f82a Reviewed-on: https://gerrit.libreoffice.org/37737 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/tabview3.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx
index 75da8d86159e..9cf18abfe6e2 100644
--- a/sc/source/ui/view/tabview3.cxx
+++ b/sc/source/ui/view/tabview3.cxx
@@ -2228,6 +2228,7 @@ void ScTabView::PaintArea( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCRO
SCROW nRow1;
SCCOL nCol2;
SCROW nRow2;
+ bool bIsTiledRendering = comphelper::LibreOfficeKit::isActive();
PutInOrder( nStartCol, nEndCol );
PutInOrder( nStartRow, nEndRow );
@@ -2249,7 +2250,7 @@ void ScTabView::PaintArea( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCRO
SCCOL nLastX = 0;
SCROW nLastY = 0;
- if (comphelper::LibreOfficeKit::isActive())
+ if (bIsTiledRendering)
{
nLastX = aViewData.GetMaxTiledCol();
nLastY = aViewData.GetMaxTiledRow();
@@ -2296,7 +2297,7 @@ void ScTabView::PaintArea( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCRO
Point aStart = aViewData.GetScrPos( nCol1, nRow1, (ScSplitPos) i );
Point aEnd = aViewData.GetScrPos( nCol2+1, nRow2+1, (ScSplitPos) i );
if ( eMode == ScUpdateMode::All )
- aEnd.X() = bLayoutRTL ? 0 : (pGridWin[i]->GetOutputSizePixel().Width());
+ aEnd.X() = bLayoutRTL ? 0 : (bIsTiledRendering ? aEnd.X() : pGridWin[i]->GetOutputSizePixel().Width());
aEnd.X() -= nLayoutSign;
aEnd.Y() -= 1;