Fix missing std_to_wx.
[dcpomatic.git] / 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()));
        }
 }