mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 23:20:29 -05:00
#13872 WellLog: Fix crash when deleting ensemble well log curve sets
Detach m_qwtPlotCurveForLegendText before the viewer check so it is always detached before deletion. Add null check for curves in detachPlotCurves, and explicitly call detachPlotCurves from RimWellLogTrack::detachAllPlotItems to ensure curves are detached before the track is destroyed.
This commit is contained in:
1 parent
e3d5b05125
commit
bc7341bcd0
2 files changed
+6
-2
No files matched your search
@@ -378,6 +378,10 @@ void RimWellLogTrack::detachAllPlotItems()
|
||||
{
|
||||
plotObjects->detachFromQwt();
|
||||
}
|
||||
if ( m_ensembleWellLogCurveSet )
|
||||
{
|
||||
m_ensembleWellLogCurveSet->detachPlotCurves();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user