]> git.saurik.com Git - wxWidgets.git/commit
Return an invalid item from wxDataViewCtrl::GetItemByRow() for invalid rows.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 27 Feb 2012 18:54:02 +0000 (18:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 27 Feb 2012 18:54:02 +0000 (18:54 +0000)
commitb0272c6014fac8d44a266cc3ef016bc6f36d2745
treed0584ac8be2020a6f07d38145393026039e37af4
parentf2bf2d71c10d3918388274bf38db6b1ca8f3d3dc
Return an invalid item from wxDataViewCtrl::GetItemByRow() for invalid rows.

This function is called in many places in the code with possibly invalid (i.e.
out of range) row, so handle it gracefully inside it in virtual list control
case. This is consistent with the behaviour in non-virtual case and with that
of GetRowByItem().

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