From a97a264f73a869741776aa0557bbee4611ad26cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 5 Dec 1999 19:31:39 +0000 Subject: [PATCH] fixed incorrect rendering of tables with cellspacing and cellpadding and colspan/rowspan git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/m_tables.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/html/m_tables.cpp b/src/html/m_tables.cpp index 33e24919fb..4850c1b007 100644 --- a/src/html/m_tables.cpp +++ b/src/html/m_tables.cpp @@ -360,6 +360,7 @@ void wxHtmlTableCell::Layout(int w) fullwid = 0; for (int i = actcol; i < m_CellInfo[actrow][actcol].colspan + actcol; i++) fullwid += m_ColsInfo[i].pixwidth; + fullwid += (m_CellInfo[actrow][actcol].colspan - 1) * m_Spacing; actcell -> SetMinHeight(m_CellInfo[actrow][actcol].minheight, m_CellInfo[actrow][actcol].valign); actcell -> Layout(fullwid); @@ -378,11 +379,12 @@ void wxHtmlTableCell::Layout(int w) if (m_CellInfo[actrow][actcol].flag != cellUsed) continue; actcell = m_CellInfo[actrow][actcol].cont; actcell -> SetMinHeight( - ypos[actrow + m_CellInfo[actrow][actcol].rowspan] - ypos[actrow] - m_CellInfo[actrow][actcol].rowspan * m_Spacing, + ypos[actrow + m_CellInfo[actrow][actcol].rowspan] - ypos[actrow] - m_Spacing, m_CellInfo[actrow][actcol].valign); fullwid = 0; for (int i = actcol; i < m_CellInfo[actrow][actcol].colspan + actcol; i++) fullwid += m_ColsInfo[i].pixwidth; + fullwid += (m_CellInfo[actrow][actcol].colspan - 1) * m_Spacing; actcell -> Layout(fullwid); actcell -> SetPos(m_ColsInfo[actcol].leftpos, ypos[actrow]); } -- 2.45.2