Much improved wxHelpControllerHtml, works under Solaris, too now.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3069 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -57,11 +57,11 @@ wxString wxHtmlFilterPlainText::ReadFile(const wxFSFile& file)
|
||||
wxString doc, doc2;
|
||||
|
||||
if (s == NULL) return wxEmptyString;
|
||||
src = (char*) malloc(s -> StreamSize());
|
||||
src = new char[s -> StreamSize()+1];
|
||||
src[s -> StreamSize()] = 0;
|
||||
s -> Read(src, s -> StreamSize());
|
||||
doc = src;
|
||||
free(src);
|
||||
delete [] src;
|
||||
|
||||
doc.Replace("<", "<", TRUE);
|
||||
doc.Replace(">", ">", TRUE);
|
||||
@@ -167,4 +167,4 @@ class wxHtmlFilterModule : public wxModule
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxHtmlFilterModule, wxModule)
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user