diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-03-19 16:40:30 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-20 09:48:34 -0700 |
commit | dfaa302383716ff832621ca2c4454e4696a42cdc (patch) | |
tree | 80b849235f198b60c1d357f6d32ffad04b75b6cf /qt-ui/profile/ruleritem.cpp | |
parent | 5b497b5655664a214aed191587bce0b4814ae18c (diff) | |
download | subsurface-dfaa302383716ff832621ca2c4454e4696a42cdc.tar.gz |
Make ruler respect dive depth.
The only place on the code that the y() position didn't accompanied the
dive-depth was this one, so let's see if this patch fixes it.
See #455
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/ruleritem.cpp')
-rw-r--r-- | qt-ui/profile/ruleritem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/ruleritem.cpp b/qt-ui/profile/ruleritem.cpp index 071c74cfe..5d2b5277b 100644 --- a/qt-ui/profile/ruleritem.cpp +++ b/qt-ui/profile/ruleritem.cpp @@ -42,7 +42,7 @@ void RulerNodeItem2::recalculate() if (x() < 0) { setPos(0, y()); } else if (x() > timeAxis->posAtValue(data->sec)) { - setPos(timeAxis->posAtValue(data->sec), y()); + setPos(timeAxis->posAtValue(data->sec), depthAxis->posAtValue(data->depth)); } else { data = pInfo.entry; count = 0; |