* 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:
Fred Kiefer 2013-04-21 16:57:58 +00:00
parent eab097631c
commit 12a29ad4d7
6 changed files with 34 additions and 18 deletions

View file

@ -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