From 9202bc162a2d70a08f251eb0e0520bedef879c97 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 22 Sep 2015 13:22:20 -0400 Subject: minor fix for possible off-by-one logic when at/near the end of the loop range --- libs/ardour/session_transport.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs') 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 -- cgit v1.2.3