0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 08:34:38 +03:00

Prepared pages loading has been fixed

This commit is contained in:
Arin Alexander 2020-06-02 14:54:58 +03:00
parent ec4c3b4db4
commit aadf643130
2 changed files with 2 additions and 1 deletions

View File

@ -133,7 +133,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc
LIMEREPORT_VERSION_MAJOR = 1 LIMEREPORT_VERSION_MAJOR = 1
LIMEREPORT_VERSION_MINOR = 5 LIMEREPORT_VERSION_MINOR = 5
LIMEREPORT_VERSION_RELEASE = 56 LIMEREPORT_VERSION_RELEASE = 57
LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}' LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}'
DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\" DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\"

View File

@ -60,6 +60,7 @@ void PreparedPages::clear()
bool PreparedPages::readPages(ItemsReaderIntf::Ptr reader) bool PreparedPages::readPages(ItemsReaderIntf::Ptr reader)
{ {
clear();
if (reader->first()){ if (reader->first()){
PageItemDesignIntf::Ptr page = PageItemDesignIntf::create(0); PageItemDesignIntf::Ptr page = PageItemDesignIntf::create(0);
if (!reader->readItem(page.data())) if (!reader->readItem(page.data()))