X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/66a77a748e5c8002f3f9ebd66f5457aca5aabad8..7b9da2077d0975db6c965a85c91d5aca671ab5e3:/src/html/m_layout.cpp diff --git a/src/html/m_layout.cpp b/src/html/m_layout.cpp index 749df786da..af040afe95 100644 --- a/src/html/m_layout.cpp +++ b/src/html/m_layout.cpp @@ -39,7 +39,7 @@ TAG_HANDLER_BEGIN(P, "P") if (m_WParser -> GetContainer() -> GetFirstCell() != NULL) { m_WParser -> CloseContainer(); m_WParser -> OpenContainer(); - } + } m_WParser -> GetContainer() -> SetIndent(m_WParser -> GetCharHeight(), wxHTML_INDENT_TOP); m_WParser -> GetContainer() -> SetAlign(tag); return FALSE; @@ -60,6 +60,7 @@ TAG_HANDLER_BEGIN(BR, "BR") c = m_WParser -> OpenContainer(); c -> SetAlignHor(al); c -> SetAlign(tag); + c -> SetMinHeight(m_WParser -> GetCharHeight()); return FALSE; } @@ -148,7 +149,7 @@ TAG_HANDLER_BEGIN(TITLE, "TITLE") wxString title = ""; wxString *src = m_WParser -> GetSource(); - for (int i = tag.GetBeginPos(); i < tag.GetEndPos1(); i++) title += (*src)[i]; + for (int i = tag.GetBeginPos(); i < tag.GetEndPos1(); i++) title += (*src)[(unsigned int) i]; wfr -> SetTitle(title); } }