mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 11:41:05 +00:00
Fix issue #49
Looked at Gorm 1.3.1 code, as that was working there. Using _cells makes Gorm happy for me.
This commit is contained in:
parent
5c98d82447
commit
a68123e0e6
1 changed files with 3 additions and 4 deletions
|
@ -222,7 +222,6 @@
|
|||
NSPoint initialLocation;
|
||||
BOOL **selectedCells = [self _selectedCells];
|
||||
id selectedCell = [self selectedCell];
|
||||
id **cells = nil;
|
||||
|
||||
/*
|
||||
* Pathological case -- ignore mouse down
|
||||
|
@ -241,7 +240,7 @@
|
|||
column: &column
|
||||
forPoint: lastLocation])
|
||||
{
|
||||
if ([cells[row][column] isEnabled])
|
||||
if ([_cells[row][column] isEnabled])
|
||||
{
|
||||
if ((_mode == NSRadioModeMatrix) && _selectedCell != nil)
|
||||
{
|
||||
|
@ -251,11 +250,11 @@
|
|||
selectedCell = nil;
|
||||
_selectedRow = _selectedColumn = -1;
|
||||
}
|
||||
[cells[row][column] setState: NSOnState];
|
||||
[_cells[row][column] setState: NSOnState];
|
||||
[self drawCellAtRow: row column: column];
|
||||
[_window flushWindow];
|
||||
selectedCells[row][column] = YES;
|
||||
[self _setSelectedCell: cells[row][column]];
|
||||
[self _setSelectedCell: _cells[row][column]];
|
||||
_selectedRow = row;
|
||||
_selectedColumn = column;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue