mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-10-09 05:57:15 +03:00
COUNT function can be called with only one databand argument
This commit is contained in:
@@ -57,7 +57,10 @@ void GroupFunction::slotBandRendered(BandDesignIntf *band)
|
||||
ContentItemDesignIntf* item = dynamic_cast<ContentItemDesignIntf*>(band->childByName(m_data));
|
||||
if (item)
|
||||
m_values.push_back(item->content());
|
||||
else setInvalid(tr("Item \"%1\" not found").arg(m_data));
|
||||
else if (m_name.compare("COUNT",Qt::CaseInsensitive) == 0) {
|
||||
m_values.push_back(1);
|
||||
} else setInvalid(tr("Item \"%1\" not found").arg(m_data));
|
||||
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
Reference in New Issue
Block a user