mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 16:44:39 +03:00
TableBuilder has been fixed
This commit is contained in:
parent
5c9128d710
commit
acab0853f5
@ -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 = 55
|
LIMEREPORT_VERSION_RELEASE = 56
|
||||||
|
|
||||||
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}\\\"
|
||||||
|
@ -1987,7 +1987,9 @@ void TableBuilder::fillInRowData(QObject* row)
|
|||||||
void TableBuilder::buildTable(const QString& datasourceName)
|
void TableBuilder::buildTable(const QString& datasourceName)
|
||||||
{
|
{
|
||||||
checkBaseLayout();
|
checkBaseLayout();
|
||||||
m_dataManager->dataSourceHolder(datasourceName)->invalidate(IDataSource::RENDER_MODE);
|
IDataSourceHolder* dh = m_dataManager->dataSourceHolder(datasourceName);
|
||||||
|
if (dh) {
|
||||||
|
dh->invalidate(IDataSource::RENDER_MODE);
|
||||||
IDataSource* ds = m_dataManager->dataSource(datasourceName);
|
IDataSource* ds = m_dataManager->dataSource(datasourceName);
|
||||||
if (ds){
|
if (ds){
|
||||||
bool firstTime = true;
|
bool firstTime = true;
|
||||||
@ -1999,6 +2001,7 @@ void TableBuilder::buildTable(const QString& datasourceName)
|
|||||||
ds->next();
|
ds->next();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TableBuilder::checkBaseLayout()
|
void TableBuilder::checkBaseLayout()
|
||||||
|
Loading…
Reference in New Issue
Block a user