sc/source/ui/unoobj/docuno.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit b1af5dc4f342e4d5fcae8d4c021b6369d6544ea7
Author:     Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk>
AuthorDate: Tue Jan 30 16:02:31 2024 +0900
Commit:     Tomaž Vajngerl <qui...@gmail.com>
CommitDate: Tue Jan 30 10:10:34 2024 +0100

    Revert "sc lok: don't set the GridWindow size to document size"
    
    This reverts commit 7bc36867e84f7b9ad091d320b5520d5bb6c287e4.
    
    Change-Id: Ibc784cb691cd38ea8d18f27acac55f8e04a065f9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162731
    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 8e1db84c65b9..96c4d18f69d7 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -563,7 +563,9 @@ void ScModelObj::paintTile( VirtualDevice& rDevice,
     // to pass it down to ScGridWindow::PaintFile to avoid computing twice.
     SCCOL nTiledRenderingAreaEndCol = 0;
     SCROW nTiledRenderingAreaEndRow = 0;
-    (void)getDocumentSize(nTiledRenderingAreaEndCol, 
nTiledRenderingAreaEndRow);
+    Size aDocSize = getDocumentSize(nTiledRenderingAreaEndCol, 
nTiledRenderingAreaEndRow);
+
+    pGridWindow->SetOutputSizePixel(Size(aDocSize.Width() * 
pViewData->GetPPTX(), aDocSize.Height() * pViewData->GetPPTY()));
 
     pGridWindow->PaintTile( rDevice, nOutputWidth, nOutputHeight,
                             nTilePosX, nTilePosY, nTileWidth, nTileHeight,

Reply via email to