diff --git a/ApplicationCode/Commands/WellLogCommands/RicNewWellLogFileCurveFeature.cpp b/ApplicationCode/Commands/WellLogCommands/RicNewWellLogFileCurveFeature.cpp index dbdbc74538..344fd5632e 100644 --- a/ApplicationCode/Commands/WellLogCommands/RicNewWellLogFileCurveFeature.cpp +++ b/ApplicationCode/Commands/WellLogCommands/RicNewWellLogFileCurveFeature.cpp @@ -72,6 +72,11 @@ void RicNewWellLogFileCurveFeature::onActionTriggered(bool isChecked) RimWellLogTrack* wellLogPlotTrack = RicNewWellLogPlotFeatureImpl::createWellLogPlotTrack(); RimWellLogFileCurve* plotCurve = RicWellLogTools::addFileCurve(wellLogPlotTrack); plotCurve->setWellPath(wellPath); + + if (wellPath->wellLogFiles().size() == 1) + { + plotCurve->setWellLogFile(wellPath->wellLogFiles().front()); + } plotCurve->updateConnectedEditors(); } }