mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3624 Guard use of m_viewer in Rim2dEclipseView
This commit is contained in:
parent
8545fe5d7f
commit
ccea48bc25
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user