Fix selection handling wxDataViewMainWindow::ItemDeleted().
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 10 Aug 2011 15:24:19 +0000 (15:24 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 10 Aug 2011 15:24:19 +0000 (15:24 +0000)
commit57ab45460d6c309ae57f5686278a65472da4349b
treed9e774e90d74c6fb19b90489cf0743c116dee16f
parentd5c4a81f2eb66d49cce640f05e5566681b31befb
Fix selection handling wxDataViewMainWindow::ItemDeleted().

The code to update m_selection was too aggressive in the virtual list
case, when it simply cleared it, and broken for single-item selection in
the general case.
Fixed to recompute selection properly.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/generic/datavgen.cpp