diff --git a/src/html/winpars.cpp b/src/html/winpars.cpp index 97c4c92d40..c3ff5cd2c5 100644 --- a/src/html/winpars.cpp +++ b/src/html/winpars.cpp @@ -196,7 +196,11 @@ void wxHtmlWinParser::InitParser(const wxString& source) m_tmpLastWasSpace = false; m_lastWordCell = NULL; + // open the toplevel container that contains everything else and that + // is never closed (this makes parser's life easier): OpenContainer(); + + // then open the first container into which page's content will go: OpenContainer(); #if !wxUSE_UNICODE