Skip to content

Commit

Permalink
#6051 Fix crash when pasting intersection on another eclipse case.
Browse files Browse the repository at this point in the history
Fixes #6051.
  • Loading branch information
kriben committed Nov 17, 2023
1 parent b981f5f commit 78544f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ApplicationLibCode/ProjectDataModel/RimEclipseView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() ) );
}
Expand Down

0 comments on commit 78544f5

Please sign in to comment.