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:
@@ -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
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user