summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ec1e0c6)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40948
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( (int)item == m_widestItem )
m_findWidest = true;
if ( (int)item == m_widestItem )
m_findWidest = true;
+ int sel = GetSelection();
+
if ( IsCreated() )
wxVListBox::SetItemCount( wxVListBox::GetItemCount()-1 );
if ( IsCreated() )
wxVListBox::SetItemCount( wxVListBox::GetItemCount()-1 );
+
+ // Fix selection
+ if ( (int)item < sel )
+ SetSelection(sel-1);
+ else if ( (int)item == sel )
+ SetSelection(wxNOT_FOUND);
}
int wxVListBoxComboPopup::FindString(const wxString& s, bool bCase) const
}
int wxVListBoxComboPopup::FindString(const wxString& s, bool bCase) const