support wxListCtrl::GetViewRect() in report view too; test it in the sample (#9484)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4110,8 +4110,7 @@ int wxListMainWindow::GetSelectedItemCount() const
|
||||
|
||||
wxRect wxListMainWindow::GetViewRect() const
|
||||
{
|
||||
wxASSERT_MSG( !HasFlag(wxLC_REPORT | wxLC_LIST),
|
||||
_T("wxListCtrl::GetViewRect() only works in icon mode") );
|
||||
wxASSERT_MSG( !HasFlag(wxLC_LIST), "not implemented for list view" );
|
||||
|
||||
// we need to find the longest/tallest label
|
||||
wxCoord xMax = 0, yMax = 0;
|
||||
|
Reference in New Issue
Block a user