#2282 RFT plot. Fix strange behavior

This commit is contained in:
Bjørn Erik Jensen
2017-12-21 09:39:26 +01:00
parent ea362ad154
commit 6beb217882
3 changed files with 14 additions and 8 deletions

View File

@@ -264,7 +264,7 @@ void RimWellPlotTools::addTimeStepsToMap(std::map<QDateTime, std::set<RifDataSou
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::vector<RimWellLogFile*> RimWellPlotTools::wellLogFilesContainingPressure(const QString& simWellName)
std::vector<RimWellLogFile*> RimWellPlotTools::wellLogFilesContainingPressure(const QString& wellPathNameOrSimWellName)
{
std::vector<RimWellLogFile*> wellLogFiles;
const RimProject* const project = RiaApplication::instance()->project();
@@ -272,7 +272,9 @@ std::vector<RimWellLogFile*> RimWellPlotTools::wellLogFilesContainingPressure(co
for (auto wellPath : wellPaths)
{
if (simWellName == wellPath->associatedSimulationWellName())
if (!wellPathNameOrSimWellName.isEmpty() &&
(wellPathNameOrSimWellName == wellPath->associatedSimulationWellName() ||
wellPathNameOrSimWellName == wellPath->name()))
{
const std::vector<RimWellLogFile*> files = wellPath->wellLogFiles();