Use bitmap_path to find me.jpeg
authorCarl Hetherington <cth@carlh.net>
Thu, 7 Jul 2022 13:20:34 +0000 (15:20 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 20 Jul 2022 08:25:54 +0000 (10:25 +0200)
src/wx/html_dialog.cc

index 824d4fabcea713f676631eee32f7ed04febbee0f..59bc8a3e8fe2b3ee896b7e1393764e90c83644f5 100644 (file)
@@ -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);