summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-10-14 22:39:46 +0200
committerRobin Gareus <robin@gareus.org>2015-10-14 22:46:15 +0200
commit8b80fe04ad0cc4dc5429f65e21ed636ed87dc634 (patch)
treeedbc7965b8701f82852e1fff96f84a6d24f158cc /gtk2_ardour/port_matrix.cc
parent5eefdf7536e2b5fc10b98669c52cdbee13e6215c (diff)
Avoid calls to Glib::ustring << operator at all cost.
Glib::operator<<(std::ostream&, Glib::ustring const&) involves loadlocale which is not thread-safe on OSX. This fixes various seemingly random crashes on OSX.
Diffstat (limited to 'gtk2_ardour/port_matrix.cc')
-rw-r--r--gtk2_ardour/port_matrix.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc
index b29e117f1f..027778ca05 100644
--- a/gtk2_ardour/port_matrix.cc
+++ b/gtk2_ardour/port_matrix.cc
@@ -1041,7 +1041,7 @@ PortMatrix::update_tab_highlighting ()
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>", Glib::Markup::escape_text ((*j)->name)));
+ label->set_markup (string_compose ("<b>%1</b>", Glib::Markup::escape_text ((*j)->name).c_str()));
}
++p;