]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/m_layout.cpp
cast corrected
[wxWidgets.git] / src / html / m_layout.cpp
index aa9ea66ee1f6199cbf415a10722173a469d82741..2464a5a9cecb7c3640714b43423c05559c5f4bfb 100644 (file)
@@ -260,11 +260,20 @@ TAG_HANDLER_BEGIN(DIV, "DIV")
             else
                 c->SetAlignHor(old);
 
-            return TRUE;
+            return true;
         }
         else
         {
-            return FALSE;
+            // Same as BR
+            int al = m_WParser->GetContainer()->GetAlignHor();
+            wxHtmlContainerCell *c;
+
+            m_WParser->CloseContainer();
+            c = m_WParser->OpenContainer();
+            c->SetAlignHor(al);
+            c->SetAlign(tag);
+            c->SetMinHeight(m_WParser->GetCharHeight());
+            return false;
         }
     }