]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlwin.cpp
Add demonstration of a few more wxRenderer methods.
[wxWidgets.git] / src / html / htmlwin.cpp
index f62f6a9353605f5871f5ec881de189c38994db82..8fedf6c9992b44812f81037e31d592039e661525 100644 (file)
@@ -467,11 +467,8 @@ bool wxHtmlWindow::DoSetPage(const wxString& source)
     SetBackgroundImage(wxNullBitmap);
 
     m_Parser->SetDC(dc);
-    if (m_Cell)
-    {
-        delete m_Cell;
-        m_Cell = NULL;
-    }
+
+    delete m_Cell;
     m_Cell = (wxHtmlContainerCell*) m_Parser->Parse(newsrc);
     delete dc;
     m_Cell->SetIndent(m_Borders, wxHTML_INDENT_ALL, wxHTML_UNITS_PIXELS);