Kaydet (Commit) 3f5143f5 authored tarafından Henry Castro's avatar Henry Castro Kaydeden (comit) Jan Holesovsky

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/37737Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJan Holesovsky <kendy@collabora.com>
üst 9fb691ad
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment