changing the number of items in wxHtmlListBox should flush the cache

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-06-26 10:05:13 +00:00
parent 2887179b1f
commit 034957673c
3 changed files with 11 additions and 3 deletions

View File

@@ -262,6 +262,14 @@ void wxHtmlListBox::RefreshAll()
wxVListBox::RefreshAll();
}
void wxHtmlListBox::SetItemCount(size_t count)
{
// the items are going to change, forget the old ones
m_cache->Clear();
wxVListBox::SetItemCount(count);
}
// ----------------------------------------------------------------------------
// wxHtmlListBox implementation of wxVListBox pure virtuals
// ----------------------------------------------------------------------------