mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixes #6520.
This commit is contained in:
committed by
Magne Sjaastad
parent
7aa0f33811
commit
409db46ab3
@@ -432,3 +432,17 @@ RimSurfaceCollection* RimSurfaceCollection::getSubCollection( const QString name
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimSurfaceCollection::containsSurface()
|
||||
{
|
||||
bool containsSurface = ( surfaces().size() > 0 );
|
||||
|
||||
for ( auto coll : m_subCollections )
|
||||
{
|
||||
containsSurface |= coll->containsSurface();
|
||||
}
|
||||
return containsSurface;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user