mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8453 Fix crash when changing plot type (QtCharts <-> Qwt).
This commit is contained in:
@@ -1011,11 +1011,16 @@ void RimPlotCurve::attach( RiuPlotWidget* plotWidget )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPlotCurve::detach()
|
||||
void RimPlotCurve::detach( bool deletePlotCurve )
|
||||
{
|
||||
if ( m_plotCurve )
|
||||
{
|
||||
m_plotCurve->detach();
|
||||
if ( deletePlotCurve )
|
||||
{
|
||||
delete m_plotCurve;
|
||||
m_plotCurve = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
replotParentPlot();
|
||||
|
||||
Reference in New Issue
Block a user