mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-21 22:13:25 -06:00
#6051 Fix crash when pasting intersection on another eclipse case.
Fixes #6051.
This commit is contained in:
parent
b981f5f745
commit
78544f5c70
@ -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() ) );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user