* Cursor.cs: We want the override cursor to be reset to NULL
authorJackson Harper <jackson@novell.com>
Mon, 5 Feb 2007 19:54:42 +0000 (19:54 -0000)
committerJackson Harper <jackson@novell.com>
Mon, 5 Feb 2007 19:54:42 +0000 (19:54 -0000)
        * when
        we set current cursor to the default cursor.

svn path=/trunk/mcs/; revision=72323

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Cursor.cs

index d7ba95f479bb33f20e4e1371ded69b9594491251..af553db6250915ca6bdfca94be45be109d977dc5 100644 (file)
@@ -3,6 +3,8 @@
        * TreeView.cs: We need to check scrollbar visibility when window
        visibility is updated, because non visible trees don't ever add
        scrollbars.
+       * Cursor.cs: We want the override cursor to be reset to NULL when
+       we set current cursor to the default cursor.
 
 2007-02-05  Jackson Harper  <jackson@ximian.com>
 
index 50e51bc5525a5fd4793bb78a83dd2430e9344641..1d60aa48a35092eedca23f061d2ca15bb04fa06c 100644 (file)
@@ -200,7 +200,7 @@ namespace System.Windows.Forms {
                        set {
                                if (current != value) {
                                        current = value;
-                                       if (current == null){
+                                       if (current == null || current == Cursors.Default){
                                                // FIXME - define and set empty cursor
                                                XplatUI.OverrideCursor(IntPtr.Zero);
                                        } else