mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2037 RFT Plot: Set formation case from plot
This commit is contained in:
@@ -260,7 +260,7 @@ void RimWellRftPlot::updateFormationNamesData() const
|
||||
{
|
||||
for (size_t i = 0; i < m_wellLogPlot->trackCount(); i++)
|
||||
{
|
||||
m_wellLogPlot->trackByIndex(i)->updateFormationNamesData(RimWellLogTrack::WELL_PATH, nullptr, QString(), 0);
|
||||
m_wellLogPlot->trackByIndex(i)->updateFormationNamesData(nullptr, RimWellLogTrack::WELL_PATH, nullptr, QString(), 0);
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -282,9 +282,17 @@ void RimWellRftPlot::updateFormationNamesData() const
|
||||
trajectoryType = RimWellLogTrack::SIMULATION_WELL;
|
||||
}
|
||||
|
||||
RimCase* rimCase = nullptr;
|
||||
std::vector<RimCase*> cases;
|
||||
proj->allCases(cases);
|
||||
if (!cases.empty())
|
||||
{
|
||||
rimCase = cases[0];
|
||||
}
|
||||
|
||||
if (m_wellLogPlot->trackCount() > 0)
|
||||
{
|
||||
m_wellLogPlot->trackByIndex(0)->updateFormationNamesData(trajectoryType, wellPath, m_wellName, m_branchIndex);
|
||||
m_wellLogPlot->trackByIndex(0)->updateFormationNamesData(rimCase, trajectoryType, wellPath, m_wellName, m_branchIndex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user