[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #25612] NSMatrix Segmentation Fault when clicking a cell
From: |
Gregory John Casamento |
Subject: |
[bug #25612] NSMatrix Segmentation Fault when clicking a cell |
Date: |
Wed, 18 Feb 2009 04:52:45 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.0.14eol) Gecko/20070505 (Debian-1.8.0.15~pre080323b-0etch2) Epiphany/2.14 |
Follow-up Comment #2, bug #25612 (project gnustep):
I wasn't aware of this bug before I made the following change...
I have added code to NSMatrix.m's method:
- (void) _selectCell: (NSCell *)aCell atRow: (int)row column: (int)column
This should prevent our attempting to set the value as such:
_selectedCells[_selectedRow][_selectedColumn] = NO;
when _selectedRow and _selectedColumn are -1. The code is here at line
1188:
--> if (_mode == NSRadioModeMatrix && _selectedRow > -1 &&
_selectedColumn > -1)
{
It is the similar to the code at line 1034:
if (_mode == NSRadioModeMatrix)
{
if (value)
{
--> if (_selectedRow > -1 && _selectedColumn > -1)
{
Please take a look at the code and let me know if there's a problem. I will
also look at nib loading to see if there's a problem there.
Thanks, GC
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?25612>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/