From 4ce19ed7aadcd2a30c35b99eac901c45e5281383 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 2 Jun 2003 23:05:22 +0000 Subject: [PATCH] compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/htmlcell.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/html/htmlcell.cpp b/src/html/htmlcell.cpp index c867b38366..b137011895 100644 --- a/src/html/htmlcell.cpp +++ b/src/html/htmlcell.cpp @@ -815,12 +815,13 @@ wxHtmlCell *wxHtmlContainerCell::GetLastTerminal() const { if ( m_Cells ) { - wxHtmlCell *c, *c2 = NULL; // most common case first: - c = m_LastCell->GetLastTerminal(); + wxHtmlCell *c = m_LastCell->GetLastTerminal(); if ( c ) return c; - for (wxHtmlCell *c = m_Cells; c; c = c->GetNext()) + + wxHtmlCell *c2 = NULL; + for (c = m_Cells; c; c = c->GetNext()) c2 = c->GetLastTerminal(); return c2; } -- 2.45.2