From: Carl Hetherington Date: Sat, 8 Sep 2012 01:03:00 +0000 (+0000) Subject: I think Region::can_move() should take into account _locked X-Git-Tag: 3.0~849 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=f404e90836f7ee0d6ea1a3644234ca3db26f8b4f;p=ardour.git 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 --- 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; }