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()
void ChartView::impl_deleteCoordinateSystems()
{
//delete all coordinate systems
::std::vector< VCoordinateSystem* >::const_iterator aIter = m_aVCooSysList.begin();
const ::std::vector< VCoordinateSystem* >::const_iterator aEnd = m_aVCooSysList.end();
::std::vector< VCoordinateSystem* > aVectorToDeleteObjects;
::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++ )
{
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