X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f14217abb40904cd16deb6897af56a299d16197f..5bf3b6fe48580853044132c381d3548535ca7ad1:/src/html/m_tables.cpp diff --git a/src/html/m_tables.cpp b/src/html/m_tables.cpp index b111abed67..7377a36fef 100644 --- a/src/html/m_tables.cpp +++ b/src/html/m_tables.cpp @@ -685,6 +685,7 @@ TAG_HANDLER_BEGIN(TABLE, "TABLE,TR,TD,TH") { wxHtmlTableCell *oldt = m_Table; + wxHtmlContainerCell *oldEnclosing = m_enclosingContainer; m_enclosingContainer = c = m_WParser->OpenContainer(); m_Table = new wxHtmlTableCell(c, tag, m_WParser->GetPixelScale()); @@ -723,6 +724,7 @@ TAG_HANDLER_BEGIN(TABLE, "TABLE,TR,TD,TH") m_WParser->CloseContainer(); m_Table = oldt; + m_enclosingContainer = oldEnclosing; return true; // ParseInner() called } @@ -769,7 +771,7 @@ TAG_HANDLER_BEGIN(TABLE, "TABLE,TR,TD,TH") m_WParser->OpenContainer(); // the header should be rendered in bold by default - int boldOld wxDUMMY_INITIALIZE(0); + int boldOld = 0; if ( isHeader ) { boldOld = m_WParser->GetFontBold();