summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-04-10 00:18:01 +0000
committerCarl Hetherington <carl@carlh.net>2010-04-10 00:18:01 +0000
commit556af5afa10adc5ca2a515637b63864c6302c45f (patch)
tree17884b5884391cbab689203523e39a9374dc2053 /gtk2_ardour
parentf4ac9430f3fc2c405334f3f02fe08a5782454396 (diff)
Fix pan updates for routes with single panners. Fixes #3066.
git-svn-id: svn://localhost/ardour2/branches/3.0@6880 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/panner_ui.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/panner_ui.cc b/gtk2_ardour/panner_ui.cc
index 4986f39fb5..bab543a675 100644
--- a/gtk2_ardour/panner_ui.cc
+++ b/gtk2_ardour/panner_ui.cc
@@ -659,7 +659,7 @@ PannerUI::pan_value_changed (uint32_t which)
{
ENSURE_GUI_THREAD (*this, &PannerUI::pan_value_changed, which)
- if (_panner->npanners() > 1 && which < _panner->npanners()) {
+ if (_panner->npanners() > 0 && which < _panner->npanners()) {
float xpos;
float val = pan_adjustments[which]->get_value ();