mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 18:31:20 +00:00
#1995 Fixed a bug where dragging the mouse in the empty area of a tableview was causing an exception.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@36298 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cc357289fa
commit
05538a1b5c
1 changed files with 3 additions and 0 deletions
|
@ -3487,6 +3487,9 @@ static inline float computePeriod(NSPoint mouseLocationWin,
|
|||
|
||||
- (BOOL) _startDragOperationWithEvent: (NSEvent *) theEvent clickedRow:(NSUInteger)clickedRow
|
||||
{
|
||||
if (clickedRow >= _numberOfRows)
|
||||
return NO;
|
||||
|
||||
NSPasteboard *pboard = [NSPasteboard pasteboardWithName: NSDragPboard];
|
||||
NSPoint startPoint = [self convertPoint: [theEvent locationInWindow]
|
||||
fromView: nil];
|
||||
|
|
Loading…
Reference in a new issue