13
0

Fix pan value update so that modifier-click on the panner correctly returns to centre.

git-svn-id: svn://localhost/ardour2/branches/3.0@6643 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-02-07 02:48:43 +00:00
parent 797cd64d12
commit a0598953d9

View File

@ -626,9 +626,8 @@ PannerUI::pan_adjustment_changed (uint32_t which)
{
if (!in_pan_update && which < _panner->npanners()) {
float xpos;
float val = pan_adjustments[which]->get_value ();
xpos = _panner->pan_control( which )->get_value();
float const xpos = _panner->pan_control(which)->get_value();
/* add a kinda-sorta detent for the middle */
@ -645,7 +644,7 @@ PannerUI::pan_adjustment_changed (uint32_t which)
if (!Panner::equivalent (val, xpos)) {
_panner->streampanner(which).set_position (val);
_panner->pan_control(which)->set_value (val);
/* XXX
the panner objects have no access to the session,
so do this here. ick.