mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5161 Don't attempt to export empty LAS-curves. It will crash in LAS-exporter.
This commit is contained in:
parent
2e8518b7c9
commit
4bbb12e32a
@ -58,6 +58,8 @@ public:
|
||||
{
|
||||
CVF_ASSERT( lasFile );
|
||||
|
||||
if ( !m_curveData->xValues().empty() )
|
||||
{
|
||||
std::vector<double> wellLogValues = m_curveData->xValues();
|
||||
for ( size_t vIdx = 0; vIdx < wellLogValues.size(); vIdx++ )
|
||||
{
|
||||
@ -70,6 +72,7 @@ public:
|
||||
|
||||
lasFile->AddLog( m_channelName, m_unit, m_comment, wellLogValues );
|
||||
}
|
||||
}
|
||||
|
||||
std::string channelName() const
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user