don't assert when GetSubItemRect() is called in non-report view if it's called with wxLIST_GETSUBITEMRECT_WHOLEITEM

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-07-13 17:52:52 +00:00
parent 3a59bd2e78
commit b8e57034a2

View File

@ -4153,7 +4153,8 @@ wxRect wxListMainWindow::GetViewRect() const
bool
wxListMainWindow::GetSubItemRect(long item, long subItem, wxRect& rect) const
{
wxCHECK_MSG( InReportView(), false,
wxCHECK_MSG( subItem == wxLIST_GETSUBITEMRECT_WHOLEITEM || InReportView(),
false,
_T("GetSubItemRect only meaningful in report view") );
wxCHECK_MSG( item >= 0 && (size_t)item < GetItemCount(), false,
_T("invalid item in GetSubItemRect") );