From d58309686d4f5317d5ffe12001f5ee8da3ba64d9 Mon Sep 17 00:00:00 2001 From: riccioclista Date: Tue, 2 Jan 2018 15:18:10 +0100 Subject: [PATCH] LTMTool: Set symbol for measure metrics When adding measures to an LTMPlot with other metrics, those measures are not cleaned up properly on replot, because they don't have a symbol. LTMPlot uses the symbol to store them in a 'curves' dictionary. All metrics without a symbol are then identified by the default metric symbol value, which is: "". --- src/Charts/LTMTool.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Charts/LTMTool.cpp b/src/Charts/LTMTool.cpp index 212ecb0d43..cbdfedcf00 100644 --- a/src/Charts/LTMTool.cpp +++ b/src/Charts/LTMTool.cpp @@ -2297,6 +2297,7 @@ EditMetricDetailDialog::measureName() .arg(context->athlete->measures->getFieldNames(measureGroup).value(measureField)); userName->setText(desc); userUnits->setText(context->athlete->measures->getFieldUnits(measureGroup, measureField)); + metricDetail->symbol = desc.replace(" ", "_"); } void