Many more corrections and clarifications to virtual index list model use

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2009-06-16 17:59:09 +00:00
parent bba6891c84
commit 9330d5afb6
4 changed files with 51 additions and 45 deletions

View File

@@ -3204,13 +3204,9 @@ int wxDataViewMainWindow::RecalculateCount()
{
if (IsVirtualList())
{
wxDataViewIndexListModel *list_model =
(wxDataViewIndexListModel*) GetOwner()->GetModel();
#ifndef __WXMAC__
return list_model->GetLastIndex() + 1;
#else
return list_model->GetLastIndex() - 1;
#endif
wxDataViewVirtualListModel *list_model =
(wxDataViewVirtualListModel*) GetOwner()->GetModel();
return list_model->GetCount();
}
else
{