Merge pull request #487 from mayerwin/patch-1
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ImageList.cs
index b4a72803ffdd96899ff6bdfea396072906cbedae..b0f0c4a0272aadd341da2e62cc2c569b0c8d6606 100644 (file)
@@ -705,7 +705,7 @@ namespace System.Windows.Forms
                        public void Clear()
                        {
                                list.Clear();
-                               if (this.handleCreated)
+                               if (!this.handleCreated)
                                        this.count = 0;
                                keys.Clear();
                        }