Guard null pointer access

This commit is contained in:
Magne Sjaastad
2018-06-26 13:14:29 +02:00
parent c3ea1a58ef
commit ad4e0bccc5

View File

@@ -735,6 +735,8 @@ void RimWellLogTrack::calculateXZoomRangeAndUpdateQwt()
//--------------------------------------------------------------------------------------------------
void RimWellLogTrack::applyXZoomFromVisibleRange()
{
if (!m_wellLogTrackPlotWidget) return;
m_wellLogTrackPlotWidget->setXRange(m_visibleXRangeMin, m_visibleXRangeMax);
m_wellLogTrackPlotWidget->replot();
}