#3624 Guard use of m_viewer in Rim2dEclipseView

This commit is contained in:
Gaute Lindkvist 2018-11-05 09:56:03 +01:00
parent 8545fe5d7f
commit ccea48bc25

View File

@ -137,10 +137,10 @@ void Rim2dEclipseView::updateCurrentTimeStep()
RimEclipseView::updateCurrentTimeStep();
if (m_viewer && m_2dGridProjection->isChecked())
{
cvf::Scene* frameScene = m_viewer->frame(m_currentTimeStep);
if (m_2dGridProjection->isChecked())
{
cvf::String name = "Grid2dProjection";
this->removeModelByName(frameScene, name);
@ -163,7 +163,6 @@ void Rim2dEclipseView::updateLegends()
if (m_viewer)
{
m_viewer->removeAllColorLegends();
}
if (m_2dGridProjection && m_2dGridProjection->isChecked())
{
@ -177,6 +176,7 @@ void Rim2dEclipseView::updateLegends()
}
}
}
}
}
//--------------------------------------------------------------------------------------------------
@ -184,9 +184,12 @@ void Rim2dEclipseView::updateLegends()
//--------------------------------------------------------------------------------------------------
void Rim2dEclipseView::updateViewWidgetAfterCreation()
{
if (m_viewer)
{
m_viewer->showAxisCross(false);
m_viewer->showEdgeTickMarksXY(true, m_showAxisLines());
m_viewer->enableNavigationRotation(false);
}
Rim3dView::updateViewWidgetAfterCreation();
}