Fix missing std_to_wx.
authorCarl Hetherington <cth@carlh.net>
Wed, 7 Oct 2015 13:48:08 +0000 (14:48 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 9 Oct 2015 12:44:55 +0000 (13:44 +0100)
src/wx/screen_dialog.cc

index 13dd9f42fbdba4cdc5d49f86a39637a60ac796b9..da813e32a99e5a49dc70228c3939d78c83aee548 100644 (file)
@@ -93,7 +93,7 @@ ScreenDialog::load_certificate (boost::filesystem::path file)
                _certificate = dcp::Certificate (dcp::file_to_string (file));
                _certificate_text->SetValue (_certificate->certificate ());
        } catch (dcp::MiscError& e) {
-               error_dialog (this, wxString::Format (_("Could not read certificate file (%s)"), e.what()));
+               error_dialog (this, wxString::Format (_("Could not read certificate file (%s)"), std_to_wx(e.what()).data()));
        }
 }