mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 06:38:13 -05:00
Avoid asserts to be able to open a misconfigured project
This commit is contained in:
1 parent
a5ce90083d
commit
e05d81aaab
1 file changed
+2
-9
@@ -249,8 +249,6 @@ void RimViewController::updateOverrides()
|
||||
|
||||
auto masterView = viewLinker->masterView();
|
||||
|
||||
CVF_ASSERT( masterView );
|
||||
|
||||
if ( m_managedView )
|
||||
{
|
||||
RimEclipseView* manEclView = managedEclipseView();
|
||||
@@ -356,13 +354,9 @@ void RimViewController::updateOptionSensitivity()
|
||||
{
|
||||
Rim3dView* mainView = nullptr;
|
||||
|
||||
if ( auto linkedViews = firstAncestorOrThisOfType<RimViewLinker>() )
|
||||
{
|
||||
RimViewLinker* linkedViews = firstAncestorOrThisOfTypeAsserted<RimViewLinker>();
|
||||
if ( linkedViews )
|
||||
{
|
||||
mainView = linkedViews->masterView();
|
||||
}
|
||||
CVF_ASSERT( mainView );
|
||||
mainView = linkedViews->masterView();
|
||||
}
|
||||
|
||||
auto* eclipseMasterView = dynamic_cast<RimEclipseView*>( mainView );
|
||||
@@ -512,7 +506,6 @@ void RimViewController::updateDuplicatedPropertyFilters()
|
||||
RimViewLinker* viewLinker = ownerViewLinker();
|
||||
|
||||
auto masterView = viewLinker->masterView();
|
||||
CVF_ASSERT( masterView );
|
||||
|
||||
if ( m_managedView )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user