mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3415 Fix reload of formation name table when reloading formations.
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
#include "RimCase.h"
|
#include "RimCase.h"
|
||||||
#include "RimTools.h"
|
#include "RimTools.h"
|
||||||
#include "Rim3dView.h"
|
#include "Rim3dView.h"
|
||||||
|
#include "RimWellLogTrack.h"
|
||||||
|
|
||||||
#include "cafPdmUiFilePathEditor.h"
|
#include "cafPdmUiFilePathEditor.h"
|
||||||
|
|
||||||
@@ -126,6 +127,17 @@ void RimFormationNames::updateConnectedViews()
|
|||||||
if (caseObj)
|
if (caseObj)
|
||||||
{
|
{
|
||||||
caseObj->updateFormationNamesData();
|
caseObj->updateFormationNamesData();
|
||||||
|
|
||||||
|
std::vector<RimWellLogTrack*> tracks;
|
||||||
|
caseObj->objectsWithReferringPtrFieldsOfType(tracks);
|
||||||
|
for (RimWellLogTrack* track : tracks)
|
||||||
|
{
|
||||||
|
// The track may be referring to the case for other reasons than formations.
|
||||||
|
if (track->formationNamesCase() == caseObj)
|
||||||
|
{
|
||||||
|
track->loadDataAndUpdate(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user