mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
#9464 contour plot crash on legend levels change
The geometry was not properly cleared when on legend changed, and would lead to crash when number of legend levels decreased. Janitor: Fix two crashes when loading repro case
This commit is contained in:
@@ -240,6 +240,7 @@ void RimEclipseContourMapView::onUpdateDisplayModelForCurrentTimeStep()
|
||||
{
|
||||
static_cast<RimEclipsePropertyFilterCollection*>( nativePropertyFilterCollection() )->updateFromCurrentTimeStep();
|
||||
|
||||
m_contourMapProjection->clearGeometry();
|
||||
updateGeometry();
|
||||
}
|
||||
|
||||
|
||||
@@ -900,7 +900,8 @@ bool RimViewController::isPropertyFilterControlPossible() const
|
||||
if ( eclipseView )
|
||||
{
|
||||
RimEclipseView* depEclipseView = managedEclipseView();
|
||||
if ( depEclipseView && eclipseView->eclipseCase()->isGridSizeEqualTo( depEclipseView->eclipseCase() ) )
|
||||
if ( depEclipseView && eclipseView->eclipseCase() && depEclipseView->eclipseCase() &&
|
||||
eclipseView->eclipseCase()->isGridSizeEqualTo( depEclipseView->eclipseCase() ) )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user