#7012 Clear facies code names when importing roff files

This commit is contained in:
Kristian Bendiksen 2020-11-18 21:34:15 +01:00 committed by Magne Sjaastad
parent 9e4e8cd353
commit b04d2aa99a
3 changed files with 12 additions and 0 deletions

View File

@ -62,6 +62,8 @@ void RicFaciesPropertiesImportTools::importFaciesPropertiesFromFile( const QStri
faciesProperties = new RimFaciesProperties;
}
faciesProperties->clearFaciesCodeNames();
for ( auto it : codeNames )
{
faciesProperties->setFaciesCodeName( it.first, it.second );

View File

@ -96,6 +96,15 @@ void RimFaciesProperties::setFaciesCodeName( int code, const QString& name )
m_propertiesTable = generatePropertiesTable();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimFaciesProperties::clearFaciesCodeNames()
{
m_faciesCodeNames.clear();
m_propertiesTable = generatePropertiesTable();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -47,6 +47,7 @@ public:
void setFilePath( const QString& filePath );
void setFaciesCodeName( int code, const QString& name );
void clearFaciesCodeNames();
void setEclipseCase( RimEclipseCase* eclipseCase );