minor fix for possible off-by-one logic when at/near the end of the loop range
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 22 Sep 2015 17:22:20 +0000 (13:22 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 28 Sep 2015 21:42:11 +0000 (17:42 -0400)
libs/ardour/session_transport.cc

index dbff4c0838d0483efc37ffa10b6cc460248cedb9..3c7d580af63d0092f5a1aca0ae4fc30d73a952f1 100644 (file)
@@ -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