]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed iteration over cells
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 27 May 2004 16:25:07 +0000 (16:25 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 27 May 2004 16:25:07 +0000 (16:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/htmlcell.cpp

index 0fdae44298516c483a661dcd02341c772ac287ff..0e1b2a00fe64ceacf92bf33a1cbe6397c9584f54 100644 (file)
@@ -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),