Don't generate wxEVT_COMMAND_DATAVIEW_CACHE_HINT for empty control.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 23 Apr 2011 18:01:36 +0000 (18:01 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 23 Apr 2011 18:01:36 +0000 (18:01 +0000)
commitda87ce5a36c80e5e049bb8a35c29c4990064206b
treea2b8ffd6318a8473bc5b7577eef089eafccb7ac1
parent68f64b40bfdffd1fc4967dc422a7d89b42545d82
Don't generate wxEVT_COMMAND_DATAVIEW_CACHE_HINT for empty control.

Don't send any cache hint events for empty wxDataViewCtrl. Sending them was
unnecessary, inconsistent with wxListCtrl (which doesn't send them when it's
empty) and the events also had incorrect range. Just don't create them at all
to avoid all these problems at once.

Closes #13132.

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