Calculation of subtotals has been fixed

This commit is contained in:
Arin Alexander
2020-07-14 19:57:29 +03:00
parent 934021a182
commit 334f590efd
6 changed files with 23 additions and 2 deletions

View File

@@ -97,6 +97,14 @@ void GroupFunction::slotBandRendered(BandDesignIntf *band)
}
}
void GroupFunction::slotBandReRendered(BandDesignIntf *oldBand, BandDesignIntf *newBand)
{
if (m_valuesByBand.contains(oldBand)){
m_valuesByBand.insert(newBand, m_valuesByBand.value(oldBand));
m_valuesByBand.remove(oldBand);
}
}
QVariant GroupFunction::addition(QVariant value1, QVariant value2)
{
return value1.toDouble()+value2.toDouble();