From eab577b950069b6a22034c22e67b7cc16753cbd8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 7 Jul 2022 15:20:34 +0200 Subject: [PATCH] Use bitmap_path to find me.jpeg --- src/wx/html_dialog.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wx/html_dialog.cc b/src/wx/html_dialog.cc index 824d4fabc..59bc8a3e8 100644 --- a/src/wx/html_dialog.cc +++ b/src/wx/html_dialog.cc @@ -45,7 +45,7 @@ HTMLDialog::HTMLDialog (wxWindow* parent, wxString title, wxString html) /* Add some resources that are used by HTML passed into this dialog */ wxMemoryFSHandler::AddFile( "me.jpg", - wxBitmap(std_to_wx(boost::filesystem::path(resources_path() / "me.jpg").string()), wxBITMAP_TYPE_JPEG), wxBITMAP_TYPE_JPEG + wxBitmap(bitmap_path("me.jpg"), wxBITMAP_TYPE_JPEG), wxBITMAP_TYPE_JPEG ); auto h = new wxHtmlWindow (this); -- 2.30.2