summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_mixer.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-11-25 20:37:39 +0000
committerDavid Robillard <d@drobilla.net>2010-11-25 20:37:39 +0000
commit8b68ed57ec5c075261639435be3290c3ba8177eb (patch)
tree309cfbdec064a3134678facbfec835aaa46f2cef /gtk2_ardour/editor_mixer.cc
parentc862d320ffccf739785e4b9aa59d7842e6f50ace (diff)
Fix some messed up code (spacey tabs).
(There is faar more of this... FIX YOUR EDITORS!) git-svn-id: svn://localhost/ardour2/branches/3.0@8086 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_mixer.cc')
-rw-r--r--gtk2_ardour/editor_mixer.cc50
1 files changed, 25 insertions, 25 deletions
diff --git a/gtk2_ardour/editor_mixer.cc b/gtk2_ardour/editor_mixer.cc
index c5006b2ae0..5f321c7931 100644
--- a/gtk2_ardour/editor_mixer.cc
+++ b/gtk2_ardour/editor_mixer.cc
@@ -185,48 +185,48 @@ Editor::set_selected_mixer_strip (TimeAxisView& view)
}
- // if this is an automation track, then we shold the mixer strip should
- // show the parent
+ // if this is an automation track, then we shold the mixer strip should
+ // show the parent
- boost::shared_ptr<ARDOUR::Route> route;
- AutomationTimeAxisView* atv;
+ boost::shared_ptr<ARDOUR::Route> route;
+ AutomationTimeAxisView* atv;
- if ((atv = dynamic_cast<AutomationTimeAxisView*>(&view)) != 0) {
+ if ((atv = dynamic_cast<AutomationTimeAxisView*>(&view)) != 0) {
- AudioTimeAxisView *parent = dynamic_cast<AudioTimeAxisView*>(view.get_parent());
+ AudioTimeAxisView *parent = dynamic_cast<AudioTimeAxisView*>(view.get_parent());
- if (parent) {
- route = parent->route ();
- }
+ if (parent) {
+ route = parent->route ();
+ }
- } else {
+ } else {
- AudioTimeAxisView* at = dynamic_cast<AudioTimeAxisView*> (&view);
+ AudioTimeAxisView* at = dynamic_cast<AudioTimeAxisView*> (&view);
- if (at) {
- route = at->route();
- } else {
- MidiTimeAxisView* mt = dynamic_cast<MidiTimeAxisView*> (&view);
- if (mt) {
- route = mt->route();
- }
- }
- }
+ if (at) {
+ route = at->route();
+ } else {
+ MidiTimeAxisView* mt = dynamic_cast<MidiTimeAxisView*> (&view);
+ if (mt) {
+ route = mt->route();
+ }
+ }
+ }
if (current_mixer_strip->route() == route) {
return;
}
- if (route) {
- current_mixer_strip->set_route (route);
- current_mixer_strip->set_width_enum (editor_mixer_strip_width, (void*) this);
- }
+ if (route) {
+ current_mixer_strip->set_route (route);
+ current_mixer_strip->set_width_enum (editor_mixer_strip_width, (void*) this);
+ }
}
void
Editor::current_mixer_strip_hidden ()
{
- Glib::RefPtr<Gtk::Action> act = ActionManager::get_action (X_("Editor"), X_("show-editor-mixer"));
+ Glib::RefPtr<Gtk::Action> act = ActionManager::get_action (X_("Editor"), X_("show-editor-mixer"));
if (act) {
Glib::RefPtr<Gtk::ToggleAction> tact = Glib::RefPtr<Gtk::ToggleAction>::cast_dynamic(act);
tact->set_active (false);