summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-09-22 13:22:20 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-09-28 17:42:11 -0400
commit9202bc162a2d70a08f251eb0e0520bedef879c97 (patch)
tree164c1a0b48746b18087a9f4114efaa51ac94adf5
parentf24fef669a0368cf5ac8c3622339abf44251eeee (diff)
minor fix for possible off-by-one logic when at/near the end of the loop range
-rw-r--r--libs/ardour/session_transport.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc
index dbff4c0838..3c7d580af6 100644
--- a/libs/ardour/session_transport.cc
+++ b/libs/ardour/session_transport.cc
@@ -1167,7 +1167,7 @@ Session::locate (framepos_t target_frame, bool with_roll, bool with_flush, bool
Location* al = _locations->auto_loop_location();
if (al) {
- if (_transport_frame < al->start() || _transport_frame > al->end()) {
+ if (_transport_frame < al->start() || _transport_frame >= al->end()) {
// located outside the loop: cancel looping directly, this is called from event handling context