mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
parent
d637248ae9
commit
9d9ff798a9
@ -336,7 +336,12 @@ void RimEclipseWellCollection::calculateIsWellPipesVisible(size_t frameIndex)
|
|||||||
|
|
||||||
bool lessEclipseWell(const caf::PdmPointer<RimEclipseWell>& w1, const caf::PdmPointer<RimEclipseWell>& w2)
|
bool lessEclipseWell(const caf::PdmPointer<RimEclipseWell>& w1, const caf::PdmPointer<RimEclipseWell>& w2)
|
||||||
{
|
{
|
||||||
return (w1->name() < w2->name());
|
if (w1.notNull() && w2.notNull())
|
||||||
|
return (w1->name() < w2->name());
|
||||||
|
else if (w1.notNull())
|
||||||
|
return true;
|
||||||
|
else
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -389,7 +389,12 @@ void RimWellPathCollection::removeWellPath(RimWellPath* wellPath)
|
|||||||
|
|
||||||
bool lessWellPath(const caf::PdmPointer<RimWellPath>& w1, const caf::PdmPointer<RimWellPath>& w2)
|
bool lessWellPath(const caf::PdmPointer<RimWellPath>& w1, const caf::PdmPointer<RimWellPath>& w2)
|
||||||
{
|
{
|
||||||
return (w1->name() < w2->name());
|
if (w1.notNull() && w2.notNull())
|
||||||
|
return (w1->name() < w2->name());
|
||||||
|
else if (w1.notNull())
|
||||||
|
return true;
|
||||||
|
else
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user