Author: jackson
Date: 2006-12-04 17:07:53 -0500 (Mon, 04 Dec 2006)
New Revision: 68999

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

        * TextBoxBase.cs:
        * TextControl.cs: Remove some unused variables.  Maybe this will
        patch things up between mike and I.
        - don't split lines less then one char wide, if the viewport is
        that small text won't be visible anyways.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-12-04 22:04:58 UTC (rev 68998)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-12-04 22:07:53 UTC (rev 68999)
@@ -5,6 +5,14 @@
 
 2006-12-04  Jackson Harper  <[EMAIL PROTECTED]>
 
+       * TextBoxBase.cs:
+       * TextControl.cs: Remove some unused variables.  Maybe this will
+       patch things up between mike and I.
+       - don't split lines less then one char wide, if the viewport is
+       that small text won't be visible anyways.
+       
+2006-12-04  Jackson Harper  <[EMAIL PROTECTED]>
+
        * TextBoxBase.cs: Default selection length is -1, need to do some
        more testing on windows to see when this is used for the property.
        - Redid the Lines [] property to that we properly remove soft line

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs   
2006-12-04 22:04:58 UTC (rev 68998)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs   
2006-12-04 22:07:53 UTC (rev 68999)
@@ -47,7 +47,6 @@
                internal bool                   auto_size;
                internal bool                   backcolor_set;
                internal CharacterCasing        character_casing;
-               internal bool                   undo;
                internal bool                   hide_selection;
                internal int                    max_length;
                internal bool                   modified;
@@ -88,7 +87,6 @@
                        auto_size = true;
                        border_style = BorderStyle.Fixed3D;
                        character_casing = CharacterCasing.Normal;
-                       undo = false;
                        hide_selection = true;
                        max_length = 32767;
                        modified = false;
@@ -570,7 +568,6 @@
                                        return;
 
                                if ((value != null) && (value != "")) {
-                                       Line    line;
 
                                        if (multiline) {
                                                string[]        lines;
@@ -1602,8 +1599,6 @@
                }
 
                private void TextBoxBase_MouseWheel(object sender, 
MouseEventArgs e) {
-                       Line    line;
-                       int     line_no;
 
                        if (!vscroll.Enabled) {
                                return;

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs   
2006-12-04 22:04:58 UTC (rev 68998)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs   
2006-12-04 22:07:53 UTC (rev 68999)
@@ -481,7 +481,7 @@
                                                len = this.text.Length;
                                                retval = true;
                                                wrapped = true;
-                                       } else if ((widths[pos] + w) > 
(doc.viewport_width - this.right_indent)) {
+                                       } else if (pos > 1 && (widths[pos] + w) 
> (doc.viewport_width - this.right_indent)) {
                                                // No suitable wrap position 
was found so break right in the middle of a word
                                                tag.width = tag.width + w;
                                                doc.Split(this, tag, pos, 
this.soft_break);
@@ -732,7 +732,6 @@
                private Line            document;
                private int             lines;
                private Line            sentinel;
-               private Line            last_found;
                private int             document_id;
                private Random          random = new Random();
                internal string         password_char;
@@ -793,7 +792,6 @@
                        sentinel.color = LineColor.Black;
 
                        document = sentinel;
-                       last_found = sentinel;
 
                        // We always have a blank line
                        owner.HandleCreated += new 
EventHandler(owner_HandleCreated);
@@ -1387,7 +1385,6 @@
                internal void Empty() {
 
                        document = sentinel;
-                       last_found = sentinel;
                        lines = 0;
 
                        // We always have a blank line
@@ -2870,8 +2867,6 @@
                                RebalanceAfterDelete(line2);
 
                        this.lines--;
-
-                       last_found = sentinel;
                }
 
                // Invalidate a section of the document to trigger redraw

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

Reply via email to