]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/winpars.cpp
added wxTreeEvent::GetKeyEvent() to allow to retrieve the key event flags from EVT_TR...
[wxWidgets.git] / src / html / winpars.cpp
index bf62ed1893a45f903d5382baf8a992c26ae35347..59b93e06928cef39670e191ea017f85d939de16a 100644 (file)
@@ -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);