Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #49 #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions GormCore/GormResourceEditor.m
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ - (void) mouseDown: (NSEvent*)theEvent
NSPoint initialLocation;
BOOL **selectedCells = [self _selectedCells];
id selectedCell = [self selectedCell];
id **cells = nil;

/*
* Pathological case -- ignore mouse down
Expand All @@ -241,7 +240,7 @@ - (void) mouseDown: (NSEvent*)theEvent
column: &column
forPoint: lastLocation])
{
if ([cells[row][column] isEnabled])
if ([_cells[row][column] isEnabled])
{
if ((_mode == NSRadioModeMatrix) && _selectedCell != nil)
{
Expand All @@ -251,11 +250,11 @@ - (void) mouseDown: (NSEvent*)theEvent
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;
}
Expand Down
Loading