X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e4db172a3b318df9aff178eb6c5da149d56e0859..dd61c39df27bfb6eff6864854a9819fc5a0cc2b4:/src/html/winpars.cpp diff --git a/src/html/winpars.cpp b/src/html/winpars.cpp index 97c4c92d40..6c7d8dab0f 100644 --- a/src/html/winpars.cpp +++ b/src/html/winpars.cpp @@ -19,13 +19,13 @@ #include "wx/intl.h" #include "wx/dc.h" #include "wx/log.h" + #include "wx/settings.h" #endif #include "wx/html/htmldefs.h" #include "wx/html/winpars.h" #include "wx/html/htmlwin.h" #include "wx/fontmap.h" -#include "wx/settings.h" #include "wx/uri.h" @@ -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