#8453 Fix crash when changing plot type (QtCharts <-> Qwt).

This commit is contained in:
Kristian Bendiksen
2022-01-17 15:22:27 +01:00
parent 258fbddc10
commit f996b5383a
5 changed files with 33 additions and 5 deletions

View File

@@ -310,11 +310,11 @@ void RimEnsembleCurveSet::setParentPlotNoReplot( RiuPlotWidget* plot )
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimEnsembleCurveSet::detachPlotCurves()
void RimEnsembleCurveSet::detachPlotCurves( bool deletePlotCurve )
{
for ( RimSummaryCurve* curve : m_curves )
{
curve->detach();
curve->detach( deletePlotCurve );
}
if ( m_plotCurveForLegendText )