* Source/GSNibLoading.m: use the new code committed to NSMenu to

lay out the menu when vertical.  Get rid of the duplicate code here.
	* Source/NSDrawer.m: set the child window position when opening.
	* Source/NSMatrix.m: -_selectCell:atRow:column: Check to make 
	sure the selectedRow and selectedColumn are > -1.  This check is 
	done elsewhere and was not done here.  This was causing a crash.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27907 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
gcasa 2009-02-18 04:04:13 +00:00
parent 28395a95e3
commit 9aba3bc91f
4 changed files with 19 additions and 116 deletions

View file

@ -1185,7 +1185,7 @@ static SEL getSel;
if (_selectedCell && _selectedCell != aCell)
{
if (_mode == NSRadioModeMatrix)
if (_mode == NSRadioModeMatrix && _selectedRow > -1 && _selectedColumn > -1)
{
_selectedCells[_selectedRow][_selectedColumn] = NO;
[_selectedCell setState: NSOffState];