mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-09-23 16:49:07 +03:00
Nested groups has been fixed for callback datasources (Thanks to Louis Coetzer)
This commit is contained in:
@@ -673,12 +673,15 @@ void CallbackDatasource::first(){
|
||||
|
||||
QVariant CallbackDatasource::data(const QString& columnName)
|
||||
{
|
||||
CallbackInfo info;
|
||||
info.dataType = CallbackInfo::ColumnData;
|
||||
info.columnName = columnName;
|
||||
info.index = m_currentRow;
|
||||
QVariant result;
|
||||
emit getCallbackData(info,result);
|
||||
if (!eof()) //Don't read past the end
|
||||
{
|
||||
CallbackInfo info;
|
||||
info.dataType = CallbackInfo::ColumnData;
|
||||
info.columnName = columnName;
|
||||
info.index = m_currentRow;
|
||||
emit getCallbackData(info,result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user