mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:00:38 +00:00
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:
parent
efd0bc2248
commit
51823d2d82
2 changed files with 10 additions and 0 deletions
|
@ -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>
|
2010-12-09 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||||
|
|
||||||
* Source/NSLayoutManager.m (-rectArrayForGlyphRange:...): Clip the
|
* Source/NSLayoutManager.m (-rectArrayForGlyphRange:...): Clip the
|
||||||
|
|
|
@ -1040,6 +1040,10 @@ static SEL getSel;
|
||||||
if (_selectedRow > -1 && _selectedColumn > -1)
|
if (_selectedRow > -1 && _selectedColumn > -1)
|
||||||
{
|
{
|
||||||
_selectedCells[_selectedRow][_selectedColumn] = NO;
|
_selectedCells[_selectedRow][_selectedColumn] = NO;
|
||||||
|
[_selectedCell setState: NSOffState];
|
||||||
|
[self setNeedsDisplayInRect:
|
||||||
|
[self cellFrameAtRow: _selectedRow
|
||||||
|
column: _selectedColumn]];
|
||||||
}
|
}
|
||||||
|
|
||||||
_selectedCell = aCell;
|
_selectedCell = aCell;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue