mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1859 SummaryPlot: Missing redraw of qwtPlot when deleting curves
This commit is contained in:
parent
946351c853
commit
7455415f88
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user