#2074 LAS import. Fix LAS file read error on Linux

This commit is contained in:
Bjørn Erik Jensen 2017-11-03 11:27:09 +01:00
parent 374c6e7b34
commit abcbe963eb

View File

@ -80,7 +80,11 @@ bool RigWellLogFile::open(const QString& fileName, QString* errorMessage)
try
{
int wellFormat = NRLib::Well::LAS;
#ifdef _WINDOWS
well = NRLib::Well::ReadWell(fileName.toStdString(), wellFormat);
#else
well = NRLib::Well::ReadWell(fileName.toUtf8().data(), wellFormat);
#endif
if (!well)
{
return false;