mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-09 23:53:04 -06:00
#2074 LAS import. Fix LAS file read error on Linux
This commit is contained in:
parent
374c6e7b34
commit
abcbe963eb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user