From 920037d387826659508ae49408378542d861ff21 Mon Sep 17 00:00:00 2001 From: yanis60 <30592254+yanis60@users.noreply.github.com> Date: Mon, 9 Jan 2023 09:42:19 +0000 Subject: [PATCH] Page free space calculation has been updated --- limereport/lrscriptenginemanager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/limereport/lrscriptenginemanager.cpp b/limereport/lrscriptenginemanager.cpp index 0b80203..9cb87ed 100644 --- a/limereport/lrscriptenginemanager.cpp +++ b/limereport/lrscriptenginemanager.cpp @@ -707,14 +707,13 @@ int ScriptEngineManager::getPageFreeSpace(PageItemDesignIntf* page){ if (page){ int height = 0; foreach(BandDesignIntf* band, page->bands()){ - if(band->type() == BandDesignIntf::Data) { height += band->geometry().height() * m_dataManager->dataSource(band->datasourceName())->model()->rowCount(); } else height += band->height(); } - return page->height() - height; + return page->height() - height - (page->pageFooter()?page->pageFooter()->height() : 0); } else return -1; }