- wxRect rect1, rect2;
- GetItemRect(itemFrom, rect1);
- GetItemRect(itemTo, rect2);
+ if (m_dbImpl)
+ {
+ const long count = itemTo - itemFrom + 1;
+ DataBrowserItemID *ids = new DataBrowserItemID[count];
+
+ if ( !IsVirtual() )
+ {
+ for ( long i = 0; i < count; i++ )
+ {
+ wxMacDataItem* thisItem = m_dbImpl->GetItemFromLine(itemFrom+i);
+ ids[i] = (DataBrowserItemID) thisItem;
+ }
+ }
+ else
+ {
+ for ( long i = 0; i < count; i++ )
+ ids[i] = itemFrom+i+1;
+ }