Skip to content

Commit 9fe099f

Browse files
Merge pull request #1179 from g-maxime/wx33
WX GUI: Fix HTML view with wx 3.3+
2 parents 216b92c + 2de875f commit 9fe099f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Source/GUI/WxWidgets/GUI_Main_HTML.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,8 @@ GUI_Main_HTML::~GUI_Main_HTML()
4848
//---------------------------------------------------------------------------
4949
void GUI_Main_HTML::GUI_Refresh()
5050
{
51-
std::string Temp(wxConvUTF8.cWX2MB(C->Inform_Get().c_str()));
52-
wxFileSystem::AddHandler(new wxMemoryFSHandler);
53-
wxMemoryFSHandler::AddFile(__T("index.html"), Temp.c_str(), Temp.size());
54-
LoadPage(__T("memory:index.html"));
55-
wxMemoryFSHandler::RemoveFile(__T("index.html"));
51+
wxString Temp=C->Inform_Get();
52+
SetPage(Temp);
5653
}
5754

5855
void GUI_Main_HTML::GUI_Resize()

0 commit comments

Comments
 (0)