mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Adjustments for release
* Show segment plots in Well Log Plot collection * Improve menu text for operations related to segment plots * Show reservoir rates for annulus and device * Make sure curve objects are visible in the Project Tree * When importing the first summary case, expand case in project tree * Bump version
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "RiaResultNames.h"
|
||||
#include "RiaRftDefines.h"
|
||||
#include "RiaSimWellBranchTools.h"
|
||||
#include "RiaStatisticsTools.h"
|
||||
#include "RiaSummaryTools.h"
|
||||
#include "RiaTextStringTools.h"
|
||||
|
||||
@@ -664,7 +665,15 @@ void RimWellLogRftCurve::onLoadDataAndUpdate( bool updateParentPlot )
|
||||
std::vector<double> errors = errorValues();
|
||||
std::vector<QString> perPointLabels;
|
||||
|
||||
if ( values.empty() || values.size() != tvDepthVector.size() )
|
||||
auto anyValidValuesPresent = []( const std::vector<double>& values ) -> bool {
|
||||
for ( const auto& v : values )
|
||||
{
|
||||
if ( RiaStatisticsTools::isValidNumber<double>( v ) ) return true;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
if ( !anyValidValuesPresent( values ) || ( values.size() != tvDepthVector.size() ) )
|
||||
{
|
||||
clearCurveData();
|
||||
this->detach( true );
|
||||
|
||||
Reference in New Issue
Block a user