mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-25 08:28:06 +03:00
Calculation of subtotals has been fixed
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user