Detaching all curves before the plot is deleted. Qwt needed it.

This commit is contained in:
Jacob Støren
2015-09-03 15:10:02 +02:00
parent f149cfff6d
commit 11e57b663c
6 changed files with 41 additions and 4 deletions

View File

@@ -177,3 +177,14 @@ void RimWellLogPlotTrace::recreateViewer()
curves[cIdx]->setPlot(this->m_viewer);
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellLogPlotTrace::detachAllCurves()
{
for (size_t cIdx = 0; cIdx < curves.size(); ++cIdx)
{
curves[cIdx]->detachCurve();
}
}