Fix crash following legend updates.

This commit is contained in:
Gaute Lindkvist 2018-09-07 15:18:41 +02:00
parent c19bcf6e67
commit 8e66ba405c

View File

@ -524,7 +524,10 @@ void RimWellLogTrack::updateAxisAndGridTickIntervals()
void RimWellLogTrack::updateAllLegendItems()
{
reattachAllCurves();
m_wellLogTrackPlotWidget->updateLegend();
if (m_wellLogTrackPlotWidget)
{
m_wellLogTrackPlotWidget->updateLegend();
}
}
//--------------------------------------------------------------------------------------------------