(#538) Added DepthUnitType enum containing meter and feet

This commit is contained in:
Magne Sjaastad
2015-12-02 12:19:35 +01:00
parent 76a90b04c8
commit fe261560bd
8 changed files with 76 additions and 12 deletions

View File

@@ -103,7 +103,7 @@ void RimWellLogFileCurve::updatePlotData()
if (values.size() == depthValues.size())
{
m_curveData->setValuesAndMD(values, depthValues, false);
m_curveData->setValuesAndMD(values, depthValues, wellLogFile->depthUnit(), false);
}
}
@@ -257,7 +257,7 @@ QString RimWellLogFileCurve::createCurveName()
RigWellLogFile* wellLogFile = logFileInfo ? logFileInfo->wellLogFile() : NULL;
if (wellLogFile)
{
QString unitName = wellLogFile->wellLogChannelUnit(m_wellLogChannnelName);
QString unitName = wellLogFile->wellLogChannelUnitString(m_wellLogChannnelName);
if (!unitName.isEmpty())
{
txt += QString(" [%1]").arg(unitName);