Skip to content

Commit

Permalink
LTMTool: Set symbol for measure metrics
Browse files Browse the repository at this point in the history
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: "".
  • Loading branch information
riccioclista committed Jan 2, 2018
1 parent a7f91fd commit d583096
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Charts/LTMTool.cpp
Expand Up @@ -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
Expand Down

0 comments on commit d583096

Please sign in to comment.