Fix bug in -setState:atRow:column: where the old selected cell wasn't

properly deselected when the matrix's mode is NSRadioMatrixMode.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31721 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2010-12-09 20:31:27 +00:00
parent efd0bc2248
commit 51823d2d82
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2010-12-09 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSMatrix.m (-setState:atRow:column:): Fix bug where the
old selected cell wasn't properly deselected when the matrix's
mode is NSRadioMatrixMode.
2010-12-09 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSLayoutManager.m (-rectArrayForGlyphRange:...): Clip the

View file

@ -1040,6 +1040,10 @@ static SEL getSel;
if (_selectedRow > -1 && _selectedColumn > -1)
{
_selectedCells[_selectedRow][_selectedColumn] = NO;
[_selectedCell setState: NSOffState];
[self setNeedsDisplayInRect:
[self cellFrameAtRow: _selectedRow
column: _selectedColumn]];
}
_selectedCell = aCell;