summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-02-14 23:03:24 +0100
committerCarl Hetherington <cth@carlh.net>2024-02-14 23:03:24 +0100
commit742d96e86a262d0238105bc869ec8f350e36ccae (patch)
tree14f71472c9a95e4f79576ccebc7b9c446611bffa /src
parentb55b41c4de6eebc26dd8126fdc5914055b778d89 (diff)
Fix conversion of _X to underlined X with GTK (via gtk_label_set_text_with_mnemonic, I think).
Diffstat (limited to 'src')
-rw-r--r--src/wx/job_view.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wx/job_view.cc b/src/wx/job_view.cc
index 41a1af012..efe17f4de 100644
--- a/src/wx/job_view.cc
+++ b/src/wx/job_view.cc
@@ -125,6 +125,9 @@ JobView::progress ()
/* Watch out for < > in the error string */
boost::algorithm::replace_all (s, "<", "&lt;");
boost::algorithm::replace_all (s, ">", "&gt;");
+#ifdef DCPOMATIC_LINUX
+ boost::algorithm::replace_all(s, "_", "__");
+#endif
whole += s;
if (whole != _last_message) {
_message->SetLabelMarkup (std_to_wx (whole));