X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/030495ecf11a16c27e711f0d812226d6b940d42b..2439f1d96880ed2fd1551b85795ccee1704dc29c:/src/osx/cocoa/listbox.mm diff --git a/src/osx/cocoa/listbox.mm b/src/osx/cocoa/listbox.mm index 9aced58b09..e4dc3d3aa6 100644 --- a/src/osx/cocoa/listbox.mm +++ b/src/osx/cocoa/listbox.mm @@ -461,7 +461,7 @@ int wxListWidgetCocoaImpl::ListGetSelections( wxArrayInt& aSelections ) const for ( int i = 0; i < count; ++i) { - if ([m_tableView isRowSelected:count]) + if ([m_tableView isRowSelected:i]) aSelections.Add(i); }