mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
WellPathCollection. Fix crash
This commit is contained in:
parent
018549d15a
commit
dc11cbd4c5
@ -244,6 +244,11 @@ void RimWellPathCollection::readAndAddWellPaths(std::vector<RimWellPath*>& wellP
|
||||
interpolatedWellColors = caf::ColorTable::interpolateColorArray(wellColors, wellPathArray.size());
|
||||
}
|
||||
|
||||
if (!wellPathArray.empty())
|
||||
{
|
||||
m_newestAddedWellName = wellPathArray.back()->name();
|
||||
}
|
||||
|
||||
for (size_t wpIdx = 0; wpIdx < wellPathArray.size(); wpIdx++)
|
||||
{
|
||||
RimWellPath* wellPath = wellPathArray[wpIdx];
|
||||
@ -274,11 +279,6 @@ void RimWellPathCollection::readAndAddWellPaths(std::vector<RimWellPath*>& wellP
|
||||
progress.incrementProgress();
|
||||
}
|
||||
|
||||
if (!wellPathArray.empty())
|
||||
{
|
||||
m_newestAddedWellName = wellPathArray.back()->name();
|
||||
}
|
||||
|
||||
this->sortWellsByName();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user