Kaydet (Commit) 590a1a52 authored tarafından Ingrid Halama's avatar Ingrid Halama

chart43: #i109770# ChartView::getExplicitValuesForAxis accessing destroyed VCoordinateSystem

üst 1df0c983
...@@ -216,13 +216,15 @@ ChartView::~ChartView() ...@@ -216,13 +216,15 @@ ChartView::~ChartView()
void ChartView::impl_deleteCoordinateSystems() void ChartView::impl_deleteCoordinateSystems()
{ {
//delete all coordinate systems //delete all coordinate systems
::std::vector< VCoordinateSystem* >::const_iterator aIter = m_aVCooSysList.begin(); ::std::vector< VCoordinateSystem* > aVectorToDeleteObjects;
const ::std::vector< VCoordinateSystem* >::const_iterator aEnd = m_aVCooSysList.end(); ::std::swap( aVectorToDeleteObjects, m_aVCooSysList );//#i109770#
::std::vector< VCoordinateSystem* >::const_iterator aIter = aVectorToDeleteObjects.begin();
const ::std::vector< VCoordinateSystem* >::const_iterator aEnd = aVectorToDeleteObjects.end();
for( ; aIter != aEnd; aIter++ ) for( ; aIter != aEnd; aIter++ )
{ {
delete *aIter; delete *aIter;
} }
m_aVCooSysList.clear(); aVectorToDeleteObjects.clear();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment