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:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user