mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 02:43:23 +00:00
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:
parent
021d799ff9
commit
6c67f90858
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue