sc/source/core/data/documen2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d501959c1b93f90321a0f1155262997e8c849753
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Fri Jul 14 10:29:40 2023 +0200
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Fri Aug 4 10:16:49 2023 +0200

    lok: don't calculate document area in tile rendering all the time
    
    GetCellArea does the same that GetPrintArea but faster
    thanks to caching the results if document wasn't modified.
    
    Change-Id: Ic0c43c3efe046419910a4056f6334099afa3fa45
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154437
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Michael Meeks <michael.me...@collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154593
    Tested-by: Jenkins
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>

diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index 42f971c82cfb..dd80e89434cc 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -701,7 +701,7 @@ bool ScDocument::GetDataStart( SCTAB nTab, SCCOL& 
rStartCol, SCROW& rStartRow )
 
 void ScDocument::GetTiledRenderingArea(SCTAB nTab, SCCOL& rEndCol, SCROW& 
rEndRow) const
 {
-    bool bHasPrintArea = GetPrintArea(nTab, rEndCol, rEndRow, false);
+    bool bHasPrintArea = GetCellArea(nTab, rEndCol, rEndRow);
 
     // we need some reasonable minimal document size
     ScViewData* pViewData = ScDocShell::GetViewData();

Reply via email to