From 88dcf47c568974781919b55f293f17dc6c1c4900 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 8 Sep 2001 22:39:06 +0000 Subject: [PATCH] oops, HTML entities were parsed twice git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/winpars.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/html/winpars.cpp b/src/html/winpars.cpp index bf62ed1893..59b93e0692 100644 --- a/src/html/winpars.cpp +++ b/src/html/winpars.cpp @@ -238,12 +238,11 @@ void wxHtmlWinParser::AddText(const wxChar* txt) templen = 0; if (m_EncConv) m_EncConv->Convert(temp); - wxString str = GetEntitiesParser()->Parse(temp); - size_t len = str.Len(); + size_t len = wxStrlen(temp); for (size_t j = 0; j < len; j++) - if (str.GetChar(j) == nbsp) - str[j] = wxT(' '); - c = new wxHtmlWordCell(str, *(GetDC())); + if (temp[j] == nbsp) + temp[j] = wxT(' '); + c = new wxHtmlWordCell(temp, *(GetDC())); if (m_UseLink) c->SetLink(m_Link); m_Container->InsertCell(c); @@ -256,12 +255,11 @@ void wxHtmlWinParser::AddText(const wxChar* txt) temp[templen] = 0; if (m_EncConv) m_EncConv->Convert(temp); - wxString str = GetEntitiesParser()->Parse(temp); - size_t len = str.Len(); + size_t len = wxStrlen(temp); for (size_t j = 0; j < len; j++) - if (str.GetChar(j) == nbsp) - str[j] = wxT(' '); - c = new wxHtmlWordCell(str, *(GetDC())); + if (temp[j] == nbsp) + temp[j] = wxT(' '); + c = new wxHtmlWordCell(temp, *(GetDC())); if (m_UseLink) c->SetLink(m_Link); m_Container->InsertCell(c); -- 2.45.2