URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=12299>
Summary: NSMatrix segfaults on row/column removal
Project: GNUstep
Submitted by: stefanu
Submitted on: Sun 03/13/2005 at 17:01
Category: Gui/AppKit
Severity: 3 - Ordinary
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
Following code and its variants (different ways of enumerating rows and
columns) caused NSMatrix to crash:
while([matrix numberOfRows] > 0)
{
[matrix removeRow:0];
}
In matrices with incomplete rows or columns it crashes too. By incomplete row
I mean, for example rows with following number of cells per row: (4, 4, 4,
1).
Attached is a patch that fixes it.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 03/13/2005 at 17:01 Name: NSMatrix.m.patch Size: 471B By:
stefanu
<http://savannah.gnu.org/bugs/download.php?item_id=12299&item_file_id=2300>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=12299>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep