Corrected issue with NSTableView.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19999 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-09-05 14:32:25 +00:00
parent 353db5256c
commit f981e6343f
2 changed files with 7 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2004-09-05 10:30 Matt Rice <ratmice@yahoo.com>
* Source/NSTableView.m: [NSTableView mouseDown:] removed code which
copied and subsequently DESTROYs dataCell. This was causing a
SIGSEGV.
2004-09-05 06:23 Matt Rice <ratmice@yahoo.com>
* Source/GSServicesManager.m: new method -activateIgnoringOtherApps:

View file

@ -3460,9 +3460,7 @@ inline float computePeriod(NSPoint mouseLocationWin,
// Prepare the cell
tb = [_tableColumns objectAtIndex: _clickedColumn];
// NB: need to be released when no longer used
// Not sure if we really need a copy here.
cell = [[tb dataCellForRow: _clickedRow] copy];
cell = [tb dataCellForRow: _clickedRow];
[cell setObjectValue: [self _objectValueForTableColumn: tb
row: _clickedRow]];
cellFrame = [self frameOfCellAtColumn: _clickedColumn
@ -3498,8 +3496,6 @@ inline float computePeriod(NSPoint mouseLocationWin,
[cell setHighlighted: NO];
[self setNeedsDisplayInRect: cellFrame];
lastEvent = [NSApp currentEvent];
DESTROY(cell);
}
while (done != YES)