Patch from Bo to show missing lines again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2291,7 +2291,7 @@ void wxDataViewMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
|
||||
unsigned int item_start = wxMax( 0, (update.y / m_lineHeight) );
|
||||
unsigned int item_count =
|
||||
wxMin( (int)(((update.y + update.height) / m_lineHeight) - item_start + 1),
|
||||
(int)(GetRowCount( )- item_start) );
|
||||
(int)(GetRowCount( ) - item_start));
|
||||
unsigned int item_last = item_start + item_count;
|
||||
|
||||
// compute which columns needs to be redrawn
|
||||
@@ -3157,7 +3157,11 @@ int wxDataViewMainWindow::RecalculateCount()
|
||||
if (!m_root)
|
||||
{
|
||||
wxDataViewIndexListModel *list_model = (wxDataViewIndexListModel*) GetOwner()->GetModel();
|
||||
return list_model->GetLastIndex();
|
||||
#ifndef __WXMAC__
|
||||
return list_model->GetLastIndex() + 1;
|
||||
#else
|
||||
return list_model->GetLastIndex() - 1;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user