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

New commits:
commit f7f6f766e3f43bb5bb5d38f3acf06471e1164a7f
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Fri Jul 14 10:29:40 2023 +0200
Commit:     Michael Meeks <michael.me...@collabora.com>
CommitDate: Fri Jul 14 12:45:22 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>

diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index 2faa9cd1c7d0..ec93a74db8ef 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -703,7 +703,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