#1859 SummaryPlot: Missing redraw of qwtPlot when deleting curves

This commit is contained in:
Unknown 2017-09-05 11:49:05 +02:00 committed by Rebecca Cox
parent 946351c853
commit 7455415f88
2 changed files with 11 additions and 13 deletions

View File

@ -113,11 +113,17 @@ RimPlotCurve::RimPlotCurve()
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
RimPlotCurve::~RimPlotCurve() RimPlotCurve::~RimPlotCurve()
{ {
if (m_qwtPlotCurve) if (m_qwtPlotCurve)
{ {
m_qwtPlotCurve->detach(); m_qwtPlotCurve->detach();
delete m_qwtPlotCurve; delete m_qwtPlotCurve;
} m_qwtPlotCurve = NULL;
}
if (m_parentQwtPlot)
{
m_parentQwtPlot->replot();
}
} }
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------

View File

@ -54,14 +54,6 @@ RimWellLogCurve::RimWellLogCurve()
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
RimWellLogCurve::~RimWellLogCurve() RimWellLogCurve::~RimWellLogCurve()
{ {
m_qwtPlotCurve->detach();
delete m_qwtPlotCurve;
m_qwtPlotCurve = NULL;
if (m_parentQwtPlot)
{
m_parentQwtPlot->replot();
}
} }