[Mono-bugs] [Bug 439576] Crash when adding groups to a ListView after adding items
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Oct 28 16:05:37 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=439576
User mgorse at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=439576#c2
--- Comment #2 from Michael Gorse <mgorse at novell.com> 2008-10-28 14:05:37 MDT ---
Created an attachment (id=248419)
--> (https://bugzilla.novell.com/attachment.cgi?id=248419)
Patch
The problem is that the default group's item count is not updated before it is
used. CalculateDetails will reset a group's current_item to 0 only if the
group has at least one item, and groups.DefaultGroup.ItemCount is still 0
because it was never updated, so current_item never gets reset and keeps being
incremented until it overflows the array.
Is this patch okay to commit?
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list