Author: mkestner
Date: 2007-04-27 13:40:16 -0400 (Fri, 27 Apr 2007)
New Revision: 76397
Modified:
trunk/stetic/ChangeLog
trunk/stetic/libstetic/ObjectWrapper.cs
Log:
2007-04-27 Mike Kestner <[EMAIL PROTECTED]>
* libsteticui/ObjectWrapper.cs: ContainerChildHashItem.Equals needs
to return avoid cast and return false if comparing to another type.
Modified: trunk/stetic/ChangeLog
===================================================================
--- trunk/stetic/ChangeLog 2007-04-27 17:34:01 UTC (rev 76396)
+++ trunk/stetic/ChangeLog 2007-04-27 17:40:16 UTC (rev 76397)
@@ -1,3 +1,8 @@
+2007-04-27 Mike Kestner <[EMAIL PROTECTED]>
+
+ * libsteticui/ObjectWrapper.cs: ContainerChildHashItem.Equals needs
+ to return avoid cast and return false if comparing to another type.
+
2007-04-26 Mike Kestner <[EMAIL PROTECTED]>
* libsteticui/PaletteBackend.cs: ActionGroupBox.Dispose needs to
Modified: trunk/stetic/libstetic/ObjectWrapper.cs
===================================================================
--- trunk/stetic/libstetic/ObjectWrapper.cs 2007-04-27 17:34:01 UTC (rev
76396)
+++ trunk/stetic/libstetic/ObjectWrapper.cs 2007-04-27 17:40:16 UTC (rev
76397)
@@ -130,6 +130,9 @@
public virtual void Dispose ()
{
+ if (IsDisposed)
+ return;
+
if (Disposed != null)
Disposed (this, EventArgs.Empty);
disposed = true;
@@ -413,6 +416,8 @@
public override bool Equals (object ob)
{
+ if (!(ob is ContainerChildHashItem))
+ return false;
ContainerChildHashItem ot = (ContainerChildHashItem) ob;
return ot.ContainerChild.Child == ContainerChild.Child
&& ot.ContainerChild.Parent == ContainerChild.Parent;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches