mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +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;
|
NSPoint initialLocation;
|
||||||
BOOL **selectedCells = [self _selectedCells];
|
BOOL **selectedCells = [self _selectedCells];
|
||||||
id selectedCell = [self selectedCell];
|
id selectedCell = [self selectedCell];
|
||||||
id **cells = nil;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Pathological case -- ignore mouse down
|
* Pathological case -- ignore mouse down
|
||||||
|
@ -241,7 +240,7 @@
|
||||||
column: &column
|
column: &column
|
||||||
forPoint: lastLocation])
|
forPoint: lastLocation])
|
||||||
{
|
{
|
||||||
if ([cells[row][column] isEnabled])
|
if ([_cells[row][column] isEnabled])
|
||||||
{
|
{
|
||||||
if ((_mode == NSRadioModeMatrix) && _selectedCell != nil)
|
if ((_mode == NSRadioModeMatrix) && _selectedCell != nil)
|
||||||
{
|
{
|
||||||
|
@ -251,11 +250,11 @@
|
||||||
selectedCell = nil;
|
selectedCell = nil;
|
||||||
_selectedRow = _selectedColumn = -1;
|
_selectedRow = _selectedColumn = -1;
|
||||||
}
|
}
|
||||||
[cells[row][column] setState: NSOnState];
|
[_cells[row][column] setState: NSOnState];
|
||||||
[self drawCellAtRow: row column: column];
|
[self drawCellAtRow: row column: column];
|
||||||
[_window flushWindow];
|
[_window flushWindow];
|
||||||
selectedCells[row][column] = YES;
|
selectedCells[row][column] = YES;
|
||||||
[self _setSelectedCell: cells[row][column]];
|
[self _setSelectedCell: _cells[row][column]];
|
||||||
_selectedRow = row;
|
_selectedRow = row;
|
||||||
_selectedColumn = column;
|
_selectedColumn = column;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue