Author: jackson
Date: 2006-11-07 11:07:39 -0500 (Tue, 07 Nov 2006)
New Revision: 67462

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
Log:

        * TextBoxBase.cs: When converting to Text don't put line breaks
        * in
        for soft line breaks.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-07 15:57:05 UTC (rev 67461)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-07 16:07:39 UTC (rev 67462)
@@ -1,3 +1,8 @@
+2006-11-07  Jackson Harper  <[EMAIL PROTECTED]>
+
+       * TextBoxBase.cs: When converting to Text don't put line breaks in
+       for soft line breaks.
+
 2006-11-07  Chris Toshok  <[EMAIL PROTECTED]>
 
        [ fix bug #79778 ]

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs   
2006-11-07 15:57:05 UTC (rev 67461)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs   
2006-11-07 16:07:39 UTC (rev 67462)
@@ -514,10 +514,12 @@
 
                                        sb = new StringBuilder();
 
+                                       Line line = null;
                                        for (i = 1; i < document.Lines; i++) {
-                                               if (i > 1)
+                                               if (line != null && 
!line.soft_break)
                                                        sb.Append 
(Environment.NewLine);
-                                               
sb.Append(document.GetLine(i).text.ToString());
+                                               line = document.GetLine (i);
+                                               sb.Append(line.text.ToString());
                                        }
                                        
sb.Append(document.GetLine(document.Lines).text.ToString());
                                        return sb.ToString();

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to