crash fix. looks like narrow mixer strips need more work again
authorBen Loftis <ben@glw.com>
Fri, 7 Dec 2012 23:34:55 +0000 (23:34 +0000)
committerBen Loftis <ben@glw.com>
Fri, 7 Dec 2012 23:34:55 +0000 (23:34 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@13618 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/mixer_strip.cc

index 5c6df5fa1d775e802f4300239c619dc0a99af914..e686be80b7684a63f87825512843750e6272e491 100644 (file)
@@ -655,9 +655,9 @@ MixerStrip::set_width_enum (Width w, void* owner)
                        show_sends_button->set_text (_("Snd"));
                }
 
-               ((Gtk::Label*)gpm.gain_automation_style_button.get_child())->set_text (
+               gpm.gain_automation_style_button.set_text (
                                gpm.short_astyle_string(gain_automation->automation_style()));
-               ((Gtk::Label*)gpm.gain_automation_state_button.get_child())->set_text (
+               gpm.gain_automation_state_button.set_text (
                                gpm.short_astate_string(gain_automation->automation_state()));
 
                if (_route->panner()) {