fixed iteration over cells

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2004-05-27 16:25:07 +00:00
parent 002c9672c7
commit b5e656ae02

View File

@@ -800,7 +800,7 @@ void wxHtmlContainerCell::Layout(int w)
{ {
prev = prev =
next = NULL; next = NULL;
for ( int n = 0; line != cell; line = line->GetNext() ) for ( int n = 0; line != cell; prev = line, line = next )
{ {
line->SetPos(line->GetPosX() + s_indent + line->SetPos(line->GetPosX() + s_indent +
((n * step) / total), ((n * step) / total),