mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Osdu Well Log: make it possible to add Osdu well logs to plot.
This commit is contained in:
@@ -676,17 +676,16 @@ RiaRftPltCurveDefinition RimWellPlotTools::curveDefFromCurve( const RimWellLogCu
|
||||
}
|
||||
else if ( wellLogFileCurve != nullptr )
|
||||
{
|
||||
RimWellLogFile* const wellLogFile = wellLogFileCurve->wellLogFile();
|
||||
RimWellLog* const wellLog = wellLogFileCurve->wellLog();
|
||||
|
||||
if ( wellLogFile != nullptr )
|
||||
if ( wellLog != nullptr )
|
||||
{
|
||||
const QDateTime date = wellLogFile->date();
|
||||
|
||||
const QDateTime date = wellLog->date();
|
||||
if ( date.isValid() )
|
||||
{
|
||||
if ( auto wellLogLasFile = dynamic_cast<RimWellLogLasFile*>( wellLogFile ) )
|
||||
if ( auto wellLogLasFile = dynamic_cast<RimWellLogLasFile*>( wellLog ) )
|
||||
{
|
||||
return RiaRftPltCurveDefinition( RifDataSourceForRftPlt( wellLogLasFile ), wellLogFile->wellName(), date );
|
||||
return RiaRftPltCurveDefinition( RifDataSourceForRftPlt( wellLogLasFile ), wellLog->wellName(), date );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user