mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-20 16:46:23 +00:00
* Source/NSCollectionView.m (-_moveUpAndExpandSelection:):
* Correct the comparision. Bug reported by Gregory John Casamento <greg.casamento@gmail.com> * Headers/AppKit/NSPopover.h: Add missing import. * Source/GSXibLoader.m: Disable NSCustomView hack again. * Headers/AppKit/NSApplication.h: Replace GSAppDelegateProtocol with NSApplicationDelegate. * Source/NSApplication.m: Adjust documentation to this * replacement. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36553 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
eab097631c
commit
12a29ad4d7
6 changed files with 34 additions and 18 deletions
|
@ -782,7 +782,7 @@ static NSString *placeholderItem = nil;
|
|||
- (void) _moveUpAndExpandSelection: (BOOL)shouldExpand
|
||||
{
|
||||
NSInteger index = [[self selectionIndexes] firstIndex];
|
||||
if (index != NSNotFound && (index - _numberOfColumns) >= 0)
|
||||
if (index != NSNotFound && index >= _numberOfColumns)
|
||||
{
|
||||
[self _modifySelectionWithNewIndex: index - _numberOfColumns
|
||||
direction: -1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue