mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Fix shading zorder
.. so power shading doesn't hide altitude Fixes #772
This commit is contained in:
@@ -77,7 +77,7 @@ class AllPlotBackground: public QwtPlotItem
|
||||
public:
|
||||
AllPlotBackground(AllPlot *_parent)
|
||||
{
|
||||
setZ(0.0);
|
||||
setZ(-100.0);
|
||||
parent = _parent;
|
||||
}
|
||||
|
||||
@@ -222,7 +222,7 @@ class AllPlotZoneLabel: public QwtPlotItem
|
||||
}
|
||||
}
|
||||
|
||||
setZ(1.0 + zone_number / 100.0);
|
||||
setZ(-99.00 + zone_number / 100.0);
|
||||
}
|
||||
virtual int rtti() const
|
||||
{
|
||||
|
||||
@@ -781,6 +781,7 @@ LTMPlot::setData(LTMSettings *set)
|
||||
// handle precision of 1 for seconds converted to hours
|
||||
int precision = m->precision();
|
||||
if (metricDetail.uunits == "seconds") precision=1;
|
||||
if (metricDetail.uunits == "km") precision=0;
|
||||
|
||||
// we have a metric so lets be precise ...
|
||||
labelString = QString("%1").arg(value * (context->athlete->useMetricUnits ? 1 : m->conversion())
|
||||
@@ -942,6 +943,7 @@ LTMPlot::setData(LTMSettings *set)
|
||||
// handle precision of 1 for seconds converted to hours
|
||||
int precision = m->precision();
|
||||
if (metricDetail.uunits == "seconds") precision=1;
|
||||
if (metricDetail.uunits == "km") precision=0;
|
||||
|
||||
// we have a metric so lets be precise ...
|
||||
labelString = QString("%1").arg(value * (context->athlete->useMetricUnits ? 1 : m->conversion())
|
||||
|
||||
Reference in New Issue
Block a user