From: Václav Slavík Date: Thu, 27 May 2004 16:25:07 +0000 (+0000) Subject: fixed iteration over cells X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b5e656ae0259211cf0beb02d19d87a651435625f?ds=sidebyside fixed iteration over cells git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/html/htmlcell.cpp b/src/html/htmlcell.cpp index 0fdae44298..0e1b2a00fe 100644 --- a/src/html/htmlcell.cpp +++ b/src/html/htmlcell.cpp @@ -800,7 +800,7 @@ void wxHtmlContainerCell::Layout(int w) { prev = 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 + ((n * step) / total),