From f404e90836f7ee0d6ea1a3644234ca3db26f8b4f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 8 Sep 2012 01:03:00 +0000 Subject: [PATCH] I think Region::can_move() should take into account _locked as well as the never-used (apart from ImageFrameView) _position_locked. Fixes #5090. git-svn-id: svn://localhost/ardour2/branches/3.0@13179 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/region.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/ardour/region.h b/libs/ardour/ardour/region.h index 1d7894fac5..85cdce6e92 100644 --- a/libs/ardour/ardour/region.h +++ b/libs/ardour/ardour/region.h @@ -167,7 +167,7 @@ class Region bool automatic () const { return _automatic; } bool whole_file () const { return _whole_file; } bool captured () const { return !(_import || _external); } - bool can_move () const { return !_position_locked; } + bool can_move () const { return !_position_locked && !_locked; } bool sync_marked () const { return _sync_marked; } bool external () const { return _external; } bool import () const { return _import; }