https://bugzilla.novell.com/show_bug.cgi?id=664647
https://bugzilla.novell.com/show_bug.cgi?id=664647#c0 Summary: [PATCH] ToolStrip allows adding the same ToolStripItem multiple times. Classification: Mono Product: Mono: Class Libraries Version: 2.8.x Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Windows.Forms AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Created an attachment (id=408442) --> (http://bugzilla.novell.com/attachment.cgi?id=408442) Test case showing that the same ToolStripItem can be added to a ToolStrip multiple times. User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.43 Safari/532.5 doing: ToolStrip ts = new ToolStrip(); ToolStripItem sameitem = new ToolStripButton(); ts.Items.Add(sameitem); ts.Items.Add(sameitem); is.Items.Count == 2 on mono is.Items.Count == 1 on .NET Reproducible: Always Steps to Reproduce: 1. Compile and run attached test case. Actual Results: Adding 0 1 2 Disposing 3 2 2 Final count = 2 Expected Results: Adding 0 0 0 Disposing 1 Final count = 0 -- 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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
