]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/winpars.cpp
[ 1936700 ] wxCAL_SHOW_WEEK_NUMBERS, slightly modified
[wxWidgets.git] / src / html / winpars.cpp
index 5e43cd724b1873feec61411d18ee65a2d59269e6..3a1aff2aab33f86669f8634c6fa0c5a6d2afd369 100644 (file)
@@ -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;
 }