#6051 Fix crash when pasting intersection on another eclipse case.

Fixes #6051.
This commit is contained in:
Kristian Bendiksen 2023-11-17 11:23:47 +01:00
parent b981f5f745
commit 78544f5c70

View File

@ -2005,7 +2005,7 @@ QList<caf::PdmOptionItemInfo> RimEclipseView::calculateValueOptions( const caf::
// RimGridCollection::mainEclipseGrid(). This function is using firstAncestorOrThisOfType() to find the Eclipse case. If the
// custom case in RimEclipseView has a different number of LGRs, a crash will happen
if ( eclCase && ( eclCase != m_eclipseCase ) && m_eclipseCase->mainGrid() && eclCase->mainGrid()->gridCount() == currentGridCount )
if ( eclCase && ( eclCase != m_eclipseCase ) && eclCase->mainGrid() && eclCase->mainGrid()->gridCount() == currentGridCount )
{
options.push_back( caf::PdmOptionItemInfo( eclCase->caseUserDescription(), eclCase, false, eclCase->uiIconProvider() ) );
}