diff --git a/src/Gui/MetricSelect.cpp b/src/Gui/MetricSelect.cpp index ae5041375..d640a668a 100644 --- a/src/Gui/MetricSelect.cpp +++ b/src/Gui/MetricSelect.cpp @@ -64,7 +64,7 @@ MetricSelect::MetricSelect(QWidget *parent, Context *context, int scope) void MetricSelect::setSymbol(QString symbol) { - if (scope&Metric == 0) return; + if ((scope & MetricSelect::Metric) == 0) return; // get the ridemetric RideMetricFactory &factory = RideMetricFactory::instance();