fix typo + remove cruft.
authorRobin Gareus <robin@gareus.org>
Mon, 17 Oct 2016 15:51:56 +0000 (17:51 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 17 Oct 2016 15:57:11 +0000 (17:57 +0200)
gtk2_ardour/mixer_ui.cc

index 282c68798b055b3aa4d71e22773db4af2e63051a..0668e1a10cda689a416c7461340171f59a578d23 100644 (file)
@@ -1518,7 +1518,6 @@ Mixer_UI::move_stripable_into_view (boost::shared_ptr<ARDOUR::Stripable> s)
 
        Adjustment* adj = scroller.get_hscrollbar()->get_adjustment();
        int sl = adj->get_value();
-       int sr = sl + scroller.get_width();
        scroller.get_hscrollbar()->set_value (max (adj->get_lower(), min (adj->get_upper(), x0 - 1.0)));
 }
 
@@ -2821,7 +2820,7 @@ Mixer_UI::register_actions ()
        myactions.register_action (group, "select-none", _("Deselect all strips and processors"), sigc::mem_fun (*this, &Mixer_UI::select_none));
 
        myactions.register_action (group, "scroll-left", _("Scroll Mixer Window to the left"), sigc::mem_fun (*this, &Mixer_UI::scroll_left));
-       myactions.register_action (group, "scroll-right", _("Scroll Mixer Window to the left"), sigc::mem_fun (*this, &Mixer_UI::scroll_right));
+       myactions.register_action (group, "scroll-right", _("Scroll Mixer Window to the right"), sigc::mem_fun (*this, &Mixer_UI::scroll_right));
 
        myactions.register_action (group, "toggle-midi-input-active", _("Toggle MIDI Input Active for Mixer-Selected Tracks/Busses"),
                                   sigc::bind (sigc::mem_fun (*this, &Mixer_UI::toggle_midi_input_active), false));