Bug #5510 » 0002-Fix-double-delete.patch
| src/Wt/Chart/WCartesianChart.C | ||
|---|---|---|
|
void WCartesianChart::paint(WPainter& painter, const WRectF& rectangle) const
|
||
|
{
|
||
|
while (!areas().empty())
|
||
|
delete const_cast<WCartesianChart *>(this)->areas().front();
|
||
|
for (auto area: areas())
|
||
|
const_cast<WCartesianChart *>(this)->removeArea(area);
|
||
|
if (!painter.isActive())
|
||
|
throw WException("WCartesianChart::paint(): painter is not active.");
|
||
- « Previous
- 1
- 2
- Next »