if (flags & wxLIST_HITTEST_ONITEM)
{
le.m_itemIndex = item;
- if (!IsVirtual())
- {
-
- le.m_item.m_itemId = item;
- GetItem(le.m_item);
- }
+ le.m_item.m_itemId = item;
+ GetItem(le.m_item);
GetEventHandler()->ProcessEvent(le);
}
}
if (m_current != -1)
{
le.m_itemIndex = m_current;
- if (!IsVirtual())
- {
- le.m_item.m_itemId = m_current;
- GetItem(le.m_item);
- }
+ le.m_item.m_itemId = m_current;
+ GetItem(le.m_item);
GetEventHandler()->ProcessEvent(le);
}
}
if (m_dbImpl)
{
if (!IsVirtual())
- m_dbImpl->MacGetColumnInfo(info.m_itemId, info.m_col, info);
+ {
+ if (info.m_itemId > 0 && info.m_itemId < GetItemCount())
+ m_dbImpl->MacGetColumnInfo(info.m_itemId, info.m_col, info);
+ }
else
{
info.SetText( OnGetItemText(info.m_itemId, info.m_col) );
event.SetEventObject( list );
event.m_itemIndex = owner->GetLineFromItem( this ) ;
- if ( !list->IsVirtual() )
- {
- lb->MacGetColumnInfo(event.m_itemIndex,0,event.m_item);
- }
+ event.m_item.m_itemId = event.m_itemIndex;
+ list->GetItem(event.m_item);
switch (message)
{
DataBrowserTableViewRowIndex result = 0;
verify_noerr( GetItemRow( itemID, &result ) ) ;
event.m_itemIndex = result;
-
- if (event.m_itemIndex >= 0)
- MacGetColumnInfo(event.m_itemIndex,0,event.m_item);
}
else
{
event.m_itemIndex = (long)itemID-1;
}
+ event.m_item.m_itemId = event.m_itemIndex;
+ list->GetItem(event.m_item);
switch (message)
{