#1859 SummaryPlot: Missing redraw of qwtPlot when deleting curves

This commit is contained in:
Unknown authored and Rebecca Cox committed 2017-09-06 08:37:28 +02:00
1 parent 946351c853
commit 7455415f88
2 files changed
+11 -13

No files matched your search

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