X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8aef90e8725b8c1e0ef2dc4945faff56f50fc6fd..7b0ccb8a603b4f97740acc65d9429bb58f7ba1bd:/src/html/winpars.cpp diff --git a/src/html/winpars.cpp b/src/html/winpars.cpp index 5e43cd724b..3a1aff2aab 100644 --- a/src/html/winpars.cpp +++ b/src/html/winpars.cpp @@ -427,13 +427,13 @@ void wxHtmlWinParser::DoAddText(wxChar *temp, int& templen) temp[j] = wxT(' '); } - wxHtmlCell *c = new wxHtmlWordCell(temp, *(GetDC())); + wxHtmlWordCell *c = new wxHtmlWordCell(temp, *(GetDC())); ApplyStateToCell(c); m_Container->InsertCell(c); - ((wxHtmlWordCell*)c)->SetPreviousWord(m_lastWordCell); - m_lastWordCell = (wxHtmlWordCell*)c; + c->SetPreviousWord(m_lastWordCell); + m_lastWordCell = c; }