X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/884898a79a6bd2e2f8b936781f670e98fbda7e9a..a2dd2ea753f431b08ba4119d67ba90f6ca5e3966:/src/html/m_tables.cpp diff --git a/src/html/m_tables.cpp b/src/html/m_tables.cpp index 0209b50ded..54515038f9 100644 --- a/src/html/m_tables.cpp +++ b/src/html/m_tables.cpp @@ -576,6 +576,10 @@ void wxHtmlTableCell::Layout(int w) m_ColsInfo[i].leftpos = wpos; wpos += m_ColsInfo[i].pixwidth + m_Spacing; } + + // add the remaining space to the last column + if (m_NumCols > 0 && wpos < m_Width) + m_ColsInfo[m_NumCols-1].pixwidth += m_Width - wpos; } /* 3. sub-layout all cells: */