mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
5b497b5655
commit
dfaa302383
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue