mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8912 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f3942e24a9
commit
494e75a247
1 changed files with 18 additions and 8 deletions
|
@ -613,13 +613,17 @@ _isCellEditable (id delegate, NSArray *tableColumns,
|
|||
SEL selector;
|
||||
|
||||
if (_allowsColumnSelection == NO)
|
||||
return;
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if ([self isColumnSelected: columnIndex] == YES)
|
||||
{
|
||||
if (([_selectedColumns count] == 1) && (_allowsEmptySelection == NO))
|
||||
return;
|
||||
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
selector = @selector (selectionShouldChangeInTableView:);
|
||||
if ([_delegate respondsToSelector: selector] == YES)
|
||||
{
|
||||
|
@ -644,10 +648,14 @@ _isCellEditable (id delegate, NSArray *tableColumns,
|
|||
|
||||
if ((modifiers & (NSShiftKeyMask | NSAlternateKeyMask))
|
||||
&& _allowsMultipleSelection)
|
||||
newSelection = NO;
|
||||
{
|
||||
newSelection = NO;
|
||||
}
|
||||
else
|
||||
newSelection = YES;
|
||||
|
||||
{
|
||||
newSelection = YES;
|
||||
}
|
||||
|
||||
if (([_selectedColumns count] > 0) && (_allowsMultipleSelection == NO)
|
||||
&& (newSelection == NO))
|
||||
{
|
||||
|
@ -2377,8 +2385,10 @@ byExtendingSelection: (BOOL)flag
|
|||
NSRectFill (aRect);
|
||||
|
||||
if ((_numberOfRows == 0) || (_numberOfColumns == 0))
|
||||
return;
|
||||
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/* Draw selection */
|
||||
[self highlightSelectionInClipRect: aRect];
|
||||
|
||||
|
|
Loading…
Reference in a new issue