Fix conversion of _X to underlined X with GTK (via gtk_label_set_text_with_mnemonic...
authorCarl Hetherington <cth@carlh.net>
Wed, 14 Feb 2024 22:03:24 +0000 (23:03 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 14 Feb 2024 22:03:24 +0000 (23:03 +0100)
src/wx/job_view.cc

index 41a1af0124bc808d7f6f7689b527c5a19ea3dd8b..efe17f4deba2a01c1939f9764464c5fa8b021cba 100644 (file)
@@ -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));