Fix shading zorder

.. so power shading doesn't hide altitude

Fixes #772
This commit is contained in:
Mark Liversedge
2014-02-03 20:18:09 +00:00
parent 971901c773
commit 88daadd8b6
2 changed files with 4 additions and 2 deletions

View File

@@ -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
{

View File

@@ -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())