diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-10-23 14:45:09 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-10-23 14:45:09 +0000 |
commit | a541e4e811fb2263f3e59f6f5aeeeb872e270718 (patch) | |
tree | 369e87c6d983e1a37c7e1c6f6d4381f29b74ec6c /gtk2_ardour/port_matrix.cc | |
parent | 948fd683cdb2e6fca0c096e2941f28e4bc82a496 (diff) |
escape markup text that may contain non-legal characters (for GMarkup). this may need to be done more widely
git-svn-id: svn://localhost/ardour2/branches/3.0@13318 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix.cc')
-rw-r--r-- | gtk2_ardour/port_matrix.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc index 8db2dad475..0fbbc03fb0 100644 --- a/gtk2_ardour/port_matrix.cc +++ b/gtk2_ardour/port_matrix.cc @@ -1009,10 +1009,10 @@ PortMatrix::update_tab_highlighting () string c = label->get_label (); if (c.length() && c[0] == '<' && !has_connection) { /* this label is marked up with <b> but shouldn't be */ - label->set_markup ((*j)->name); + label->set_text ((*j)->name); } else if (c.length() && c[0] != '<' && has_connection) { /* this label is not marked up with <b> but should be */ - label->set_markup (string_compose ("<b>%1</b>", (*j)->name)); + label->set_markup (string_compose ("<b>%1</b>", Glib::Markup::escape_text ((*j)->name))); } ++p; |