From f745e483c796a2ade45988eb841809f153269fc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l=20Hagen?= Date: Tue, 22 Sep 2015 15:45:58 +0200 Subject: [PATCH] (#507) Updating curve name only if "auto name" is set --- ApplicationCode/ProjectDataModel/RimWellLogFileCurve.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/RimWellLogFileCurve.cpp b/ApplicationCode/ProjectDataModel/RimWellLogFileCurve.cpp index 65840036d2..56190a5d9c 100644 --- a/ApplicationCode/ProjectDataModel/RimWellLogFileCurve.cpp +++ b/ApplicationCode/ProjectDataModel/RimWellLogFileCurve.cpp @@ -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); } }