(#507) Updating curve name only if "auto name" is set

This commit is contained in:
Pål Hagen 2015-09-22 15:45:58 +02:00
parent 2c8ac1541d
commit f745e483c7

View File

@ -90,7 +90,10 @@ void RimWellLogFileCurve::updatePlotData()
m_plotCurve->setSamples(NULL, NULL, 0);
}
m_plotCurve->setTitle(createCurveName());
if (m_autoName)
{
m_plotCurve->setTitle(createCurveName());
}
}
}
else
@ -234,7 +237,7 @@ QString RimWellLogFileCurve::createCurveName()
QString unitName = wellLogFile->wellLogChannelUnit(m_wellLogChannnelName);
if (!unitName.isEmpty())
{
txt += QString(" [%1]").arg(wellLogFile->wellLogChannelUnit(m_wellLogChannnelName));
txt += QString(" [%1]").arg(unitName);
}
}