A couple of missing std_to_wx calls.
authorCarl Hetherington <cth@carlh.net>
Sun, 31 Dec 2017 01:12:11 +0000 (01:12 +0000)
committerCarl Hetherington <cth@carlh.net>
Sun, 31 Dec 2017 01:12:11 +0000 (01:12 +0000)
src/tools/dcpomatic_player.cc

index a4db5fc71959239e8ddc5d739f2655c552ead6c6..850d1ed8a5778efb500bc612fe7d6cdc9c7b8834 100644 (file)
@@ -284,7 +284,7 @@ private:
                        try {
                                dcp->add_kdm (dcp::EncryptedKDM (dcp::file_to_string (wx_to_std (d->GetPath ()), MAX_KDM_SIZE)));
                        } catch (exception& e) {
-                               error_dialog (this, wxString::Format (_("Could not load KDM (%s)"), e.what ()));
+                               error_dialog (this, wxString::Format (_("Could not load KDM (%s)"), std_to_wx(e.what())));
                                d->Destroy ();
                                return;
                        }
@@ -492,7 +492,7 @@ private:
        }
        catch (exception& e)
        {
-               error_dialog (0, wxString::Format ("DCP-o-matic Player could not start: %s", e.what ()));
+               error_dialog (0, wxString::Format ("DCP-o-matic Player could not start: %s", std_to_wx(e.what())));
                return true;
        }