Well, wxHTML compiles in Unicode mode now. But if it works (without
further changes), it shall be considered proof that there is such a thing as a divine intervention. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -70,13 +70,13 @@ wxHtmlPRECell::wxHtmlPRECell(const wxString& s, wxDC& dc) : wxHtmlCell()
|
||||
while (tokenizer.HasMoreTokens()) {
|
||||
if (i % 10 == 0) m_Text = (wxString**) realloc(m_Text, sizeof(wxString*) * (i + 10));
|
||||
tmp = tokenizer.NextToken();
|
||||
tmp.Replace(" ", " ", TRUE);
|
||||
tmp.Replace(""", "\"", TRUE);
|
||||
tmp.Replace("<", "<", TRUE);
|
||||
tmp.Replace(">", ">", TRUE);
|
||||
tmp.Replace("&", "&", TRUE);
|
||||
tmp.Replace("\t", " ", TRUE);
|
||||
tmp.Replace("\r", "", TRUE);
|
||||
tmp.Replace(wxT(" "), wxT(" "), TRUE);
|
||||
tmp.Replace(wxT("""), wxT("\""), TRUE);
|
||||
tmp.Replace(wxT("<"), wxT("<"), TRUE);
|
||||
tmp.Replace(wxT(">"), wxT(">"), TRUE);
|
||||
tmp.Replace(wxT("&"), wxT("&"), TRUE);
|
||||
tmp.Replace(wxT("\t"), wxT(" "), TRUE);
|
||||
tmp.Replace(wxT("\r"), wxT(""), TRUE);
|
||||
m_Text[i++] = new wxString(tmp);
|
||||
|
||||
dc.GetTextExtent(tmp, &x, &z, &z);
|
||||
|
Reference in New Issue
Block a user