mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#589) Guarding when dropping a track at a disabled plot
This commit is contained in:
parent
1dc03c87fa
commit
f50f5e3253
@ -202,7 +202,7 @@ void RimWellLogPlot::removeTrack(RimWellLogPlotTrack* track)
|
||||
{
|
||||
if (track)
|
||||
{
|
||||
m_viewer->removeTrackPlot(track->viewer());
|
||||
if (m_viewer) m_viewer->removeTrackPlot(track->viewer());
|
||||
tracks.removeChildObject(track);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user