X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e3ac6ee157ca7c666cea3c762276b02d0f38033e..08989e30ede130f0ec29ddf0d4f36a71211bdcee:/src/html/m_layout.cpp diff --git a/src/html/m_layout.cpp b/src/html/m_layout.cpp index aa9ea66ee1..2464a5a9ce 100644 --- a/src/html/m_layout.cpp +++ b/src/html/m_layout.cpp @@ -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; } }