If the depth is zero, dont show it.

The first depth label of its axis is always zero, do not show it.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-02-15 20:48:58 -02:00 committed by Dirk Hohndel
parent 021d799ff9
commit 6c67f90858

View file

@ -275,6 +275,8 @@ void DiveCartesianAxis::setColor(const QColor& color)
QString DepthAxis::textForValue(double value) QString DepthAxis::textForValue(double value)
{ {
if (value == 0)
return QString();
return get_depth_string(value, false, false); return get_depth_string(value, false, false);
} }