mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 20:44:39 +03:00
Merge pull request #66 from asmaloney/fix-returning-deleted-data
Ensure we aren't returning data that has been deleted …
This commit is contained in:
commit
6105051d27
@ -442,6 +442,7 @@ BandDesignIntf* ReportRender::renderBand(BandDesignIntf *patternBand, BandDesign
|
||||
BandDesignIntf* upperPart = dynamic_cast<BandDesignIntf*>(bandClone->cloneUpperPart(m_maxHeightByColumn[m_currentColumn]));
|
||||
registerBand(upperPart);
|
||||
delete bandClone;
|
||||
bandClone = NULL;
|
||||
}
|
||||
} else {
|
||||
|
||||
@ -459,6 +460,7 @@ BandDesignIntf* ReportRender::renderBand(BandDesignIntf *patternBand, BandDesign
|
||||
BandDesignIntf* upperPart = dynamic_cast<BandDesignIntf*>(bandClone->cloneUpperPart(m_maxHeightByColumn[m_currentColumn]));
|
||||
registerBand(upperPart);
|
||||
delete bandClone;
|
||||
bandClone = NULL;
|
||||
};
|
||||
} else {
|
||||
bandClone->setHeight(m_maxHeightByColumn[m_currentColumn]);
|
||||
|
Loading…
Reference in New Issue
Block a user