Author: everaldo
Date: 2007-11-19 15:09:44 -0500 (Mon, 19 Nov 2007)
New Revision: 89942
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
Log:
2007-11-19 Everaldo Canuto <[EMAIL PROTECTED]>
* Form.cs: Check for empty Text before assign to cp.Caption in
CreateParams
it prevent problems when empty captions. [Fixes #342141]
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-11-19 20:04:31 UTC (rev 89941)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-11-19 20:09:44 UTC (rev 89942)
@@ -1,3 +1,8 @@
+2007-11-19 Everaldo Canuto <[EMAIL PROTECTED]>
+
+ * Form.cs: Check for empty Text before assign to cp.Caption in
CreateParams
+ it prevent problems when empty captions. [Fixes #342141]
+
2007-11-19 Jonathan Pobst <[EMAIL PROTECTED]>
* Label.cs: Use Size instead of None. Fixes bug #342077.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
2007-11-19 20:04:31 UTC (rev 89941)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
2007-11-19 20:09:44 UTC (rev 89942)
@@ -1323,8 +1323,8 @@
get {
CreateParams cp = new CreateParams ();
- cp.Caption = Text;
- cp.Caption = cp.Caption.Replace
(Environment.NewLine, string.Empty);
+ if (Text != null)
+ cp.Caption = Text.Replace
(Environment.NewLine, string.Empty);
cp.ClassName = XplatUI.DefaultClassName;
cp.ClassStyle = 0;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches