]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/m_pre.cpp
compilation fix
[wxWidgets.git] / src / html / m_pre.cpp
index 76090c9398da94813f72e1aae9d20f5643452369..2594df910c95e2f811f134a38b0099e3f079d585 100644 (file)
@@ -94,6 +94,8 @@ TAG_HANDLER_BEGIN(PRE, "PRE")
 
         m_WParser->CloseContainer();
         c = m_WParser->OpenContainer();
+        c->SetWidthFloat(tag);
+        c = m_WParser->OpenContainer();
         c->SetAlignHor(wxHTML_ALIGN_LEFT);
         c->SetIndent(m_WParser->GetCharHeight(), wxHTML_INDENT_TOP);
 
@@ -106,6 +108,7 @@ TAG_HANDLER_BEGIN(PRE, "PRE")
         m_Parser->DoParsing();
         m_Parser->RestoreState();
 
+        m_WParser->CloseContainer();
         m_WParser->CloseContainer();
         c = m_WParser->OpenContainer();