#926 Eclipse Input Data : Added support for display of keyword names of more than eight characters

This commit is contained in:
Magne Sjaastad 2016-11-28 07:00:55 +01:00
parent 5dbe2d322d
commit 4642e7abcd

View File

@ -277,6 +277,9 @@ bool RifEclipseInputFileTools::readProperty(const QString& fileName, RigCaseData
//--------------------------------------------------------------------------------------------------
bool RifEclipseInputFileTools::readDataFromKeyword(ecl_kw_type* eclipseKeywordData, RigCaseData* caseData, const QString& resultName)
{
CVF_ASSERT(caseData);
CVF_ASSERT(eclipseKeywordData);
bool mathingItemCount = false;
{
int itemCount = ecl_kw_get_size(eclipseKeywordData);
@ -336,7 +339,7 @@ void RifEclipseInputFileTools::findKeywordsOnFile(const QString &fileName, std::
filepos = data.pos() - lineLength;
keyPos.filePos = filepos;
keyPos.keyword = line.left(8).trimmed();
keyPos.keyword = line.trimmed();
keywords->push_back(keyPos);
//qDebug() << keyPos.keyword << " - " << keyPos.filePos;
}