mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3816 Annotations : Assert if resolve of PdmPtrField fails
This commit is contained in:
@@ -847,16 +847,7 @@ void RimEclipseView::onLoadDataAndUpdate()
|
||||
|
||||
syncronizeWellsWithResults();
|
||||
|
||||
RimProject* proj = RiaApplication::instance()->project();
|
||||
if (proj && proj->activeOilField())
|
||||
{
|
||||
RimAnnotationCollection* annotColl = proj->activeOilField()->annotationCollection();
|
||||
if (annotColl && annotationCollection())
|
||||
{
|
||||
annotationCollection()->onGlobalCollectionChanged(annotColl);
|
||||
}
|
||||
}
|
||||
|
||||
syncronizeLocalAnnotationsFromGlobal();
|
||||
|
||||
{
|
||||
// Update simulation well fractures after well cell results are imported
|
||||
@@ -1269,6 +1260,22 @@ void RimEclipseView::syncronizeWellsWithResults()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipseView::syncronizeLocalAnnotationsFromGlobal()
|
||||
{
|
||||
RimProject* proj = RiaApplication::instance()->project();
|
||||
if (proj && proj->activeOilField())
|
||||
{
|
||||
RimAnnotationCollection* annotColl = proj->activeOilField()->annotationCollection();
|
||||
if (annotColl && annotationCollection())
|
||||
{
|
||||
annotationCollection()->onGlobalCollectionChanged(annotColl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user