mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Guard null pointer access
This commit is contained in:
@@ -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