I think Region::can_move() should take into account _locked
authorCarl Hetherington <carl@carlh.net>
Sat, 8 Sep 2012 01:03:00 +0000 (01:03 +0000)
committerCarl Hetherington <carl@carlh.net>
Sat, 8 Sep 2012 01:03:00 +0000 (01:03 +0000)
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

index 1d7894fac52e8c376d80b6e45ba7227e68c93b8f..85cdce6e9248ee4e44999d184ba3a41f4e1cab36 100644 (file)
@@ -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; }