sc/source/ui/unoobj/docuno.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 7bc36867e84f7b9ad091d320b5520d5bb6c287e4 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk> AuthorDate: Thu Jan 11 16:07:41 2024 +0900 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Tue Jan 16 13:03:53 2024 +0100 sc lok: don't set the GridWindow size to document size We now set the GridWindow size to the size of the client area so no need to set it to the document size (which can get enormous in Calc). There are no ill effects AFAICS, but needs a lot more testing. Change-Id: Ib6d6fd0d72c9e8767bfe1636ba1621ccf9908f90 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162135 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index a7f0a5a7674f..275b91ba694f 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -563,9 +563,7 @@ void ScModelObj::paintTile( VirtualDevice& rDevice, // to pass it down to ScGridWindow::PaintFile to avoid computing twice. SCCOL nTiledRenderingAreaEndCol = 0; SCROW nTiledRenderingAreaEndRow = 0; - Size aDocSize = getDocumentSize(nTiledRenderingAreaEndCol, nTiledRenderingAreaEndRow); - - pGridWindow->SetOutputSizePixel(Size(aDocSize.Width() * pViewData->GetPPTX(), aDocSize.Height() * pViewData->GetPPTY())); + (void)getDocumentSize(nTiledRenderingAreaEndCol, nTiledRenderingAreaEndRow); pGridWindow->PaintTile( rDevice, nOutputWidth, nOutputHeight, nTilePosX, nTilePosY, nTileWidth, nTileHeight,