mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2086 Fix well GUI name for well paths when extended ascii chars in name
This commit is contained in:
parent
b0ca4f3199
commit
d5116d8942
@ -21,6 +21,8 @@
|
||||
|
||||
#include "RigWellLogCurveData.h"
|
||||
|
||||
#include "RifStringTools.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(RifStringTools::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 RifStringTools::fromNativeEncoded(m_wellLogFile->GetWellName().data());
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user