X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/afcc5de1b6473ed38b7dfa46f4d25842a75f78a1..3b6d8c19fc54a137c3faa99b1e7ab253ed836131:/src/html/htmlcell.cpp diff --git a/src/html/htmlcell.cpp b/src/html/htmlcell.cpp index cda05a607a..c62a65ace0 100644 --- a/src/html/htmlcell.cpp +++ b/src/html/htmlcell.cpp @@ -752,7 +752,6 @@ void wxHtmlContainerCell::Layout(int w) ypos + line->GetPosY()); line = line->GetNext(); } - xcnt++; } ypos += ysizedown; @@ -968,11 +967,9 @@ const wxHtmlCell* wxHtmlContainerCell::Find(int condition, const void* param) co { if (m_Cells) { - const wxHtmlCell *r = NULL; - for (wxHtmlCell *cell = m_Cells; cell; cell = cell->GetNext()) { - r = cell->Find(condition, param); + const wxHtmlCell *r = cell->Find(condition, param); if (r) return r; } }