mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#507) Updating curve name only if "auto name" is set
This commit is contained in:
parent
2c8ac1541d
commit
f745e483c7
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user