#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:
Magne Sjaastad committed 2026-04-16 16:43:36 +02:00
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();
}
}
//--------------------------------------------------------------------------------------------------