mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 17:32:13 -05:00
Guard null pointer access
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user