compilation fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-06-02 23:05:22 +00:00
parent c9c61efbdd
commit 4ce19ed7aa

View File

@@ -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;
}