X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/04dbb6467be8f564f380bd9a1106fbdecbd26a98..aba4387c4c71fb812c6a07a7abb495606c5ef4af:/src/html/m_tables.cpp diff --git a/src/html/m_tables.cpp b/src/html/m_tables.cpp index e6505e6898..7f2f90ff8b 100644 --- a/src/html/m_tables.cpp +++ b/src/html/m_tables.cpp @@ -118,7 +118,8 @@ wxHtmlTableCell::wxHtmlTableCell(wxHtmlContainerCell *parent, const wxHtmlTag& t : wxHtmlContainerCell(parent) { m_PixelScale = pixel_scale; - m_HasBorders = (tag.GetParam(wxT("BORDER")) != wxT("0")); + m_HasBorders = + (tag.HasParam(wxT("BORDER")) && tag.GetParam(wxT("BORDER")) != wxT("0")); m_ColsInfo = NULL; m_NumCols = m_NumRows = 0; m_CellInfo = NULL; @@ -495,7 +496,7 @@ TAG_HANDLER_BEGIN(TABLE, "TABLE,TR,TD,TH") } - else if (m_Table && !tag.IsEnding()) + else if (m_Table) { // new row in table if (tag.GetName() == wxT("TR"))