#5161 Don't attempt to export empty LAS-curves. It will crash in LAS-exporter.

This commit is contained in:
Gaute Lindkvist 2019-12-04 11:24:24 +01:00
parent 2e8518b7c9
commit 4bbb12e32a

View File

@ -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
{