* Source/NSOutlineView.m: Handle rowAtPoint: returning -1.

* Source/NSTableView.m (drawRect:): Only call
        -highlightSelectionInClipRect: and -drawGridInClipRect: once.
        (-drawGridInClipRect:): Constrain the vertical grid line to the last
	 row drawn in the rect.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24071 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ratmice 2006-11-10 19:12:32 +00:00
parent 8a63fd2e1d
commit 84a779733b
3 changed files with 14 additions and 25 deletions

View file

@ -832,7 +832,8 @@ static NSImage *unexpandable = nil;
_clickedRow = [self rowAtPoint: location];
_clickedColumn = [self columnAtPoint: location];
if ([_tableColumns objectAtIndex: _clickedColumn] == _outlineTableColumn)
if (_clickedRow != -1
&& [_tableColumns objectAtIndex: _clickedColumn] == _outlineTableColumn)
{
NSImage *image;