From bc60925fb3dbcd8011b82f019d71106b2f8dd64f Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Fri, 23 May 2008 10:19:31 +0000 Subject: [PATCH] Update selection cache when inserting items, too git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/listbox.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gtk/listbox.cpp b/src/gtk/listbox.cpp index a4b21a34ac..634f2fd26e 100644 --- a/src/gtk/listbox.cpp +++ b/src/gtk/listbox.cpp @@ -542,6 +542,8 @@ int wxListBox::DoInsertItems(const wxArrayStringsAdapter& items, AssignNewItemClientData(GtkGetIndexFor(itercur), clientData, i, type); } + UpdateOldSelections(); + return pos + numItems - 1; } -- 2.45.2