Fix logic for setting mixer strip name button widths (#4448).
authorCarl Hetherington <carl@carlh.net>
Tue, 19 Jun 2012 13:23:48 +0000 (13:23 +0000)
committerCarl Hetherington <carl@carlh.net>
Tue, 19 Jun 2012 13:23:48 +0000 (13:23 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@12778 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/mixer_strip.cc

index ff3fd54624da77830c388fb8872bb107c37d8d92..adce954a91afdb8e56790435c55fe0e830fe3cdb 100644 (file)
@@ -611,7 +611,7 @@ MixerStrip::set_width_enum (Width w, void* owner)
                solo_isolated_led->set_text (_("iso"));
                solo_safe_led->set_text (_("lock"));
 
-               Gtkmm2ext::set_size_request_to_display_given_text (name_button, "long", 2, 2);
+               Gtkmm2ext::set_size_request_to_display_given_text (name_button, longest_label.c_str(), 2, 2);
                set_size_request (-1, -1);
                break;
 
@@ -635,7 +635,7 @@ MixerStrip::set_width_enum (Width w, void* owner)
                solo_isolated_led->set_text (_("i"));
                solo_safe_led->set_text (_("L"));
 
-               Gtkmm2ext::set_size_request_to_display_given_text (name_button, longest_label.c_str(), 2, 2);
+               Gtkmm2ext::set_size_request_to_display_given_text (name_button, "long", 2, 2);
                set_size_request (max (50, gpm.get_gm_width()), -1);
                break;
        }