From a0598953d91d1087795988118034f3ae28e11079 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 7 Feb 2010 02:48:43 +0000 Subject: [PATCH] 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 --- gtk2_ardour/panner_ui.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/panner_ui.cc b/gtk2_ardour/panner_ui.cc index e58af02f9b..fd97dca7a7 100644 --- a/gtk2_ardour/panner_ui.cc +++ b/gtk2_ardour/panner_ui.cc @@ -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.