diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-18 16:26:43 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-18 16:26:43 +0000 |
commit | adbfd1b262b448a2ec6485b56a01991d8c147497 (patch) | |
tree | 59a2037c69fea16e1aa006f103b60b5dfa23b09d /libs | |
parent | d53364f2cff25b8883f1188a22a1b7065680f229 (diff) |
MCP: maybe fix vpot behaviour as seen with pan width
git-svn-id: svn://localhost/ardour2/branches/3.0@12008 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/surfaces/mackie/strip.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/surfaces/mackie/strip.cc b/libs/surfaces/mackie/strip.cc index 3b17255766..9fa19fa94d 100644 --- a/libs/surfaces/mackie/strip.cc +++ b/libs/surfaces/mackie/strip.cc @@ -612,12 +612,11 @@ Strip::handle_pot (Pot& pot, float delta) stop moving. So to get a stop event, we need to use a timeout. */ - pot.start_touch (_surface->mcp().transport_frame()); - + boost::shared_ptr<AutomationControl> ac = pot.control(); double p = pot.get_value (); p += delta; - p = min (1.0, p); - p = max (0.0, p); + p = max (ac->lower(), p); + p = min (ac->upper(), p); pot.set_value (p); } |