COUNT function can be called with only one databand argument

This commit is contained in:
Arin Alexander
2016-12-24 14:01:35 +03:00
parent 658a6e7e09
commit 081b422468
5 changed files with 34 additions and 8 deletions

View File

@@ -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: