diff options
author | Hans Baier <hansfbaier@googlemail.com> | 2009-01-21 10:20:27 +0000 |
---|---|---|
committer | Hans Baier <hansfbaier@googlemail.com> | 2009-01-21 10:20:27 +0000 |
commit | 5309c327ec96de33838e45ddb1489a632c2a4c68 (patch) | |
tree | 78cbc9083966e2a42cb8d6a15b0053e6681e9572 /gtk2_ardour/automation_line.cc | |
parent | 33852a0728d081864b83e74e900802be7ab6f2aa (diff) |
* make MIDI-specific menu show up on all MIDI lanes
* style guide, comments and a little refactoring (remove duplication)
git-svn-id: svn://localhost/ardour2/branches/3.0@4422 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_line.cc')
-rw-r--r-- | gtk2_ardour/automation_line.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index f06cbee510..102a3fd29c 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -116,8 +116,9 @@ AutomationLine::queue_reset () void AutomationLine::show () { - if (_interpolation != AutomationList::Discrete) + if (_interpolation != AutomationList::Discrete) { line->show(); + } if (points_visible) { for (vector<ControlPoint*>::iterator i = control_points.begin(); i != control_points.end(); ++i) { @@ -629,8 +630,9 @@ AutomationLine::determine_visible_control_points (ALPoints& points) line->property_points() = line_points; - if (_visible && _interpolation != AutomationList::Discrete) + if (_visible && _interpolation != AutomationList::Discrete) { line->show(); + } } @@ -1201,8 +1203,9 @@ AutomationLine::show_all_control_points () void AutomationLine::hide_all_but_selected_control_points () { - if (alist->interpolation() == AutomationList::Discrete) + if (alist->interpolation() == AutomationList::Discrete) { return; + } points_visible = false; @@ -1216,8 +1219,9 @@ AutomationLine::hide_all_but_selected_control_points () void AutomationLine::track_entered() { - if (alist->interpolation() != AutomationList::Discrete) + if (alist->interpolation() != AutomationList::Discrete) { show_all_control_points(); + } } void |