diff --git a/ApplicationLibCode/ProjectDataModel/Flow/RimWellAllocationPlot.cpp b/ApplicationLibCode/ProjectDataModel/Flow/RimWellAllocationPlot.cpp index 8e9cb9e096..3cbf7dbb87 100644 --- a/ApplicationLibCode/ProjectDataModel/Flow/RimWellAllocationPlot.cpp +++ b/ApplicationLibCode/ProjectDataModel/Flow/RimWellAllocationPlot.cpp @@ -49,6 +49,7 @@ #include "RimWellLogCurveCommonDataSource.h" #include "RimWellLogLasFile.h" #include "RimWellLogPlot.h" +#include "RimWellLogPlotNameConfig.h" #include "RimWellLogTrack.h" #include "RimWellPlotTools.h" @@ -130,6 +131,9 @@ RimWellAllocationPlot::RimWellAllocationPlot() RiaDefines::DepthTypeEnum::PSEUDO_LENGTH } ); m_accumulatedWellFlowPlot->setCommonDataSourceEnabled( false ); + m_accumulatedWellFlowPlot->nameConfig()->setCustomName( "Accumulated Flow Chart" ); + m_accumulatedWellFlowPlot->setNamingMethod( RiaDefines::ObjectNamingMethod::CUSTOM ); + m_accumulatedWellFlowPlot->updateAutoName(); m_showWindow = false; setDeletable( true ); diff --git a/ApplicationLibCode/ProjectDataModel/Flow/RimWellAllocationPlot.h b/ApplicationLibCode/ProjectDataModel/Flow/RimWellAllocationPlot.h index 2f5b25459e..f1305f2352 100644 --- a/ApplicationLibCode/ProjectDataModel/Flow/RimWellAllocationPlot.h +++ b/ApplicationLibCode/ProjectDataModel/Flow/RimWellAllocationPlot.h @@ -109,7 +109,7 @@ class RimWellAllocationPlot : public RimViewWindow void onLoadDataAndUpdate() override; private: - void setCase( RimEclipseResultCase* eclipseCase); + void setCase( RimEclipseResultCase* eclipseCase ); void updateFromWell(); void updateWellFlowPlotXAxisTitle( RimWellLogTrack* plotTrack ); diff --git a/ApplicationLibCode/ReservoirDataModel/RigWellLogCurveData.cpp b/ApplicationLibCode/ReservoirDataModel/RigWellLogCurveData.cpp index c090d07001..f5239ed7ba 100644 --- a/ApplicationLibCode/ReservoirDataModel/RigWellLogCurveData.cpp +++ b/ApplicationLibCode/ReservoirDataModel/RigWellLogCurveData.cpp @@ -251,6 +251,7 @@ std::vector RigWellLogCurveData::depthValuesByIntervals( RiaDefines::Dep RiaDefines::DepthUnitType destinationDepthUnit ) const { const std::vector depthValues = RigWellLogCurveData::depthsForDepthUnit( depths( depthType ), m_depthUnit, destinationDepthUnit ); + if ( depthValues.empty() ) return depthValues; std::vector filteredValues; RiaCurveDataTools::getValuesByIntervals( depthValues, m_intervalsOfContinousValidValues, &filteredValues );