diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-06-27 21:38:12 +0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-27 21:38:12 +0800 |
commit | 3cdf8dc4c18cb4e4d2c0fe3908a03a51ff34ce04 (patch) | |
tree | b2497f4c98da22b7730eff016f374b1344e5fce1 /qt-ui/diveplanner.h | |
parent | 47e6e555cc842f23e93f0f251e9aede36004289f (diff) | |
download | subsurface-3cdf8dc4c18cb4e4d2c0fe3908a03a51ff34ce04.tar.gz |
Correctly prevent time travel in planner
Prior to this change the visual feedback (the handle that is drawn when
the user moves the mouse while pressing the left mouse button) would not
move to an illegal position (one that is impossible without time
travel), but it the user moved the mouse to such an illegal position and
then released the mouse button, we still added that illegal position to
the plan.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r-- | qt-ui/diveplanner.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index 4553c3b94..8669217a1 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -87,6 +87,7 @@ private: Button *lessTime; Button *lessDepth; + QPointF lastValidPos; }; namespace Ui{ |