From 6fe7e0dea117988e777131b33e4901894ba51504 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 30 Nov 2011 01:54:13 +0000 Subject: [PATCH] fix segfault in preferences dialog caused by incorrect use of S_(). i've checked all other uses in gtk2_ardour and cleared them git-svn-id: svn://localhost/ardour2/branches/3.0@10839 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/rc_option_editor.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index 494e088552..97254a05f3 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -310,7 +310,9 @@ public: for (int x = 0; modifiers[x].name; ++x) { if (modifiers[x].modifier == Keyboard::edit_modifier ()) { - _edit_modifier_combo.set_active_text (S_(modifiers[x].name)); + string lookup_str = "key|"; + lookup_str += modifiers[x].name; + _edit_modifier_combo.set_active_text (S_(lookup_str.c_str())); break; } }