]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/htmllbox.cpp
Put wxAutoNSAutoreleasePool in methods that may be used outside the run loop.
[wxWidgets.git] / src / generic / htmllbox.cpp
index a9d2f468c3423d21481ea6731e8382593dbe7f17..dff147a45c6dc1592f97622051e2e30aca336b00 100644 (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
 // ----------------------------------------------------------------------------