mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#542) Fixed several project-open crashes related to missing files.
Added errormessage on missing wellpath file
This commit is contained in:
@@ -77,17 +77,19 @@ void RimWellLogFileCurve::updatePlotData()
|
||||
if (logFileInfo)
|
||||
{
|
||||
RigWellLogFile* wellLogFile = logFileInfo->wellLogFile();
|
||||
|
||||
std::vector<double> values = wellLogFile->values(m_wellLogChannnelName);
|
||||
std::vector<double> depthValues = wellLogFile->depthValues();
|
||||
|
||||
if (values.size() > 0 && depthValues.size() > 0)
|
||||
if (wellLogFile)
|
||||
{
|
||||
m_plotCurve->setSamples(values.data(), depthValues.data(), (int)depthValues.size());
|
||||
}
|
||||
else
|
||||
{
|
||||
m_plotCurve->setSamples(NULL, NULL, 0);
|
||||
std::vector<double> values = wellLogFile->values(m_wellLogChannnelName);
|
||||
std::vector<double> depthValues = wellLogFile->depthValues();
|
||||
|
||||
if (values.size() > 0 && depthValues.size() > 0)
|
||||
{
|
||||
m_plotCurve->setSamples(values.data(), depthValues.data(), (int)depthValues.size());
|
||||
}
|
||||
else
|
||||
{
|
||||
m_plotCurve->setSamples(NULL, NULL, 0);
|
||||
}
|
||||
}
|
||||
|
||||
if (m_autoName)
|
||||
|
||||
Reference in New Issue
Block a user