Merge the changes from 3.0 branch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3496,6 +3496,12 @@ size_t wxListMainWindow::GetItemCount() const
|
||||
|
||||
void wxListMainWindow::SetItemCount(long count)
|
||||
{
|
||||
// Update the current item if it's not valid any longer (notice that this
|
||||
// invalidates it completely if the control is becoming empty, which is the
|
||||
// right thing to do).
|
||||
if ( HasCurrent() && m_current >= (size_t)count )
|
||||
ChangeCurrent(count - 1);
|
||||
|
||||
m_selStore.SetItemCount(count);
|
||||
m_countVirt = count;
|
||||
|
||||
|
Reference in New Issue
Block a user