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 <quikee@gmail.com>
This commit is contained in:
Tomaž Vajngerl 2024-01-11 16:07:41 +09:00 committed by Tomaž Vajngerl
parent dcff97abcd
commit 7bc36867e8

View file

@ -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,