* Form.cs (Icon): If the icon is null, reset the icon to the
default value.
svn path=/trunk/mcs/; revision=52494
2005-11-02 Miguel de Icaza <miguel@novell.com>
+ * Form.cs (Icon): If the icon is null, reset the icon to the
+ default value.
+
* Cursor.cs: When writing the AND-mask bitmap do not include the
number of colors, but hardcode those to two (black and white),
fixes the loading of color cursors (Paint Dot Net).
icon = value;
if (IsHandleCreated) {
- XplatUI.SetIcon(Handle, icon);
+ XplatUI.SetIcon(Handle, icon == null ? default_icon : icon);
}
}
}