summaryrefslogtreecommitdiff
path: root/gtk2_ardour/panner_ui.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-02-07 02:48:43 +0000
committerCarl Hetherington <carl@carlh.net>2010-02-07 02:48:43 +0000
commita0598953d91d1087795988118034f3ae28e11079 (patch)
tree41f55f7675eda5b263041e8e014d0d69db6b57a8 /gtk2_ardour/panner_ui.cc
parent797cd64d124e14446fcd2b90807c5d2b5af0e20b (diff)
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
Diffstat (limited to 'gtk2_ardour/panner_ui.cc')
-rw-r--r--gtk2_ardour/panner_ui.cc5
1 files 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.