mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#435) Bugfix - made sure that correct pointer is assigned
This commit is contained in:
parent
08e266c2f3
commit
7efd3daa8b
@ -95,7 +95,7 @@ RimWellPath::RimWellPath()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RimWellPath::~RimWellPath()
|
RimWellPath::~RimWellPath()
|
||||||
{
|
{
|
||||||
if (m_lasFileInfo)
|
if (m_lasFileInfo())
|
||||||
{
|
{
|
||||||
delete m_lasFileInfo;
|
delete m_lasFileInfo;
|
||||||
}
|
}
|
||||||
@ -358,7 +358,7 @@ void RimWellPath::updateFilePathsFromProjectPath()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RimWellPath::setLogFileInfo(RimWellLasFileInfo* logFileInfo)
|
void RimWellPath::setLogFileInfo(RimWellLasFileInfo* logFileInfo)
|
||||||
{
|
{
|
||||||
if (m_lasFileInfo)
|
if (m_lasFileInfo())
|
||||||
{
|
{
|
||||||
delete m_lasFileInfo;
|
delete m_lasFileInfo;
|
||||||
}
|
}
|
||||||
|
@ -213,7 +213,7 @@ void RimWellPathCollection::addWellLogs(const QStringList& filePaths)
|
|||||||
RimWellPath* wellPath = wellPathByName(logFileInfo->wellName());
|
RimWellPath* wellPath = wellPathByName(logFileInfo->wellName());
|
||||||
if (!wellPath)
|
if (!wellPath)
|
||||||
{
|
{
|
||||||
RimWellPath* wellPath = new RimWellPath();
|
wellPath = new RimWellPath();
|
||||||
wellPath->setCollection(this);
|
wellPath->setCollection(this);
|
||||||
wellPaths.push_back(wellPath);
|
wellPaths.push_back(wellPath);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user