mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4352 Fractures : Make sure appropriate value is always returned
This commit is contained in:
parent
3cdf19b19d
commit
c2fb16a4d3
@ -193,11 +193,9 @@ bool RimWellPathFracture::compareByWellPathNameAndMD(const RimWellPathFracture*
|
|||||||
bool RimWellPathFracture::isEnabled() const
|
bool RimWellPathFracture::isEnabled() const
|
||||||
{
|
{
|
||||||
RimWellPathFractureCollection* fractureCollection = nullptr;
|
RimWellPathFractureCollection* fractureCollection = nullptr;
|
||||||
this->firstAncestorOrThisOfType(fractureCollection);
|
this->firstAncestorOrThisOfTypeAsserted(fractureCollection);
|
||||||
if (fractureCollection)
|
|
||||||
{
|
return fractureCollection->isChecked() && isChecked();
|
||||||
return fractureCollection->isChecked() && isChecked();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user