2260 Drag/drop LAS file channel. Fix invisible curve issue

This commit is contained in:
Bjørn Erik Jensen
2017-12-13 12:38:44 +01:00
parent 64fe9e9a3b
commit 607d9fff63

View File

@@ -28,6 +28,7 @@
#include "RimWellLogExtractionCurve.h"
#include "RimWellLogFileChannel.h"
#include "RimWellLogFileCurve.h"
#include "RimWellLogFile.h"
#include "RimWellLogRftCurve.h"
#include "RimWellLogTrack.h"
#include "RimWellPath.h"
@@ -134,9 +135,14 @@ void RicWellLogTools::addWellLogChannelsToPlotTrack(RimWellLogTrack* plotTrack,
RimWellLogFileCurve* plotCurve = RicWellLogTools::addFileCurve(plotTrack);
RimWellPath* wellPath;
RimWellLogFile* wellLogFile;
wellLogFileChannels[cIdx]->firstAncestorOrThisOfType(wellPath);
wellLogFileChannels[cIdx]->firstAncestorOrThisOfType(wellLogFile);
if (wellPath)
{
if(wellLogFile) plotCurve->setWellLogFile(wellLogFile);
plotCurve->setWellPath(wellPath);
plotCurve->setWellLogChannelName(wellLogFileChannels[cIdx]->name());
plotCurve->loadDataAndUpdate(true);