Guard null pointer access

This commit is contained in:
Magne Sjaastad committed 2018-06-26 13:14:37 +02:00
1 parent c3ea1a58ef
commit ad4e0bccc5
1 file changed
+2
@@ -735,6 +735,8 @@ void RimWellLogTrack::calculateXZoomRangeAndUpdateQwt()
//--------------------------------------------------------------------------------------------------
void RimWellLogTrack::applyXZoomFromVisibleRange()
{
if (!m_wellLogTrackPlotWidget) return;
m_wellLogTrackPlotWidget->setXRange(m_visibleXRangeMin, m_visibleXRangeMax);
m_wellLogTrackPlotWidget->replot();
}