#7655 Well Allocation Plot: Add more guarding for empty vectors

wip
This commit is contained in:
Magne Sjaastad 2021-05-25 15:51:02 +02:00
parent a4a6c30370
commit b8f7490311
2 changed files with 3 additions and 0 deletions

View File

@ -310,6 +310,7 @@ void RimWellAllocationPlot::updateFromWell()
? wfCalculator->trueVerticalDepth( brIdx )
: std::vector<double>();
if ( !depthValues.empty() )
{
std::vector<QString> tracerNames = wfCalculator->tracerNames();
for ( const QString& tracerName : tracerNames )

View File

@ -2351,6 +2351,8 @@ void RimWellLogTrack::updateStackedCurveData()
for ( auto curve : stackedCurvesInGroup )
{
auto depths = curve->curveData()->depths( depthType );
if ( depths.empty() ) continue;
if ( allDepthValues.empty() )
{
auto minmaxit = std::minmax_element( depths.begin(), depths.end() );