Merge branch '2018.01.01-patch' into dev. #2086

This commit is contained in:
Bjørn Erik Jensen
2018-02-05 08:29:24 +01:00
17 changed files with 169 additions and 69 deletions

View File

@@ -21,6 +21,8 @@
#include "RigWellLogCurveData.h"
#include "RiaStringEncodingTools.h"
#include "RimWellLogCurve.h"
#include "well.hpp"
@@ -80,11 +82,8 @@ 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
well = NRLib::Well::ReadWell(RiaStringEncodingTools::toNativeEncoded(fileName).data(), wellFormat);
if (!well)
{
return false;
@@ -152,7 +151,7 @@ void RigWellLogFile::close()
QString RigWellLogFile::wellName() const
{
CVF_ASSERT(m_wellLogFile);
return QString::fromStdString(m_wellLogFile->GetWellName());
return RiaStringEncodingTools::fromNativeEncoded(m_wellLogFile->GetWellName().data());
}
//--------------------------------------------------------------------------------------------------