mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8864 Fix no data issue for Analysis Plot
When RifMultipleSummaryReaders was introduced, no summary data was available to Analysis plots. Fix this by always return true in RifSummaryReaderInterface::hasAddress for a default address object
This commit is contained in:
parent
46173af8c3
commit
ca9b209e9b
@ -54,6 +54,9 @@ RifEclipseSummaryAddress RifSummaryReaderInterface::errorAddress( const RifEclip
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
bool RifSummaryReaderInterface::hasAddress( const RifEclipseSummaryAddress& resultAddress ) const
|
bool RifSummaryReaderInterface::hasAddress( const RifEclipseSummaryAddress& resultAddress ) const
|
||||||
{
|
{
|
||||||
|
static const RifEclipseSummaryAddress defaultAdr = RifEclipseSummaryAddress();
|
||||||
|
if ( resultAddress == defaultAdr ) return true;
|
||||||
|
|
||||||
for ( const RifEclipseSummaryAddress& summaryAddress : m_allResultAddresses )
|
for ( const RifEclipseSummaryAddress& summaryAddress : m_allResultAddresses )
|
||||||
{
|
{
|
||||||
if ( summaryAddress == resultAddress )
|
if ( summaryAddress == resultAddress )
|
||||||
|
Loading…
Reference in New Issue
Block a user