]> git.saurik.com Git - wxWidgets.git/commit - src/generic/datavgen.cpp
Fix selection event sending for Ctrl-click in generic wxDataViewCtrl.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Feb 2010 01:20:02 +0000 (01:20 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Feb 2010 01:20:02 +0000 (01:20 +0000)
commit9439bc695589837900ebeb7db5fd029851cd1096
tree310254700b8baeaf363aea0b0e4b08e24c7a7b5e
parent1d4b9c37cb6ecec51b0a16db42776ce100d2ee7a
Fix selection event sending for Ctrl-click in generic wxDataViewCtrl.

Ctrl-clicking on the only currently selected item in wxDataViewCtrl crashed
because we dereferenced first element of the empty m_selection array when
generating the selection change event.

Instead, send the event for the current item, this should be more consistent
with the native versions behaviour and at the very least doesn't crash.

Closes #11684.

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