]> git.saurik.com Git - wxWidgets.git/commitdiff
wxHTML tables handler didn't properly restore m_enclosingContainer state (fixes ...
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 21 Mar 2009 09:41:52 +0000 (09:41 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 21 Mar 2009 09:41:52 +0000 (09:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/m_tables.cpp

index d1971d0fb1bd04c640f8ddd328feb47afbee2069..7377a36fef1a2e4fd76887f3c50ebed0f93d0633 100644 (file)
@@ -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
         }