소스 검색

* TextBoxBase.cs: Move the if value the same bail check up, we
don't want to empty the document if it is already empty, this
seems to severly mess up the caret. TODO: I should probably fix
the empty statement to update teh caret somehow.


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

Jackson Harper 19 년 전
부모
커밋
ca44126663

+ 7 - 0
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog

@@ -1,3 +1,10 @@
+2006-10-03  Jackson Harper  <[email protected]>
+
+	* TextBoxBase.cs: Move the if value the same bail check up, we
+	don't want to empty the document if it is already empty, this
+	seems to severly mess up the caret.  TODO: I should probably fix
+	the empty statement to update teh caret somehow.
+
 2006-10-03  Chris Toshok  <[email protected]>
 
 	* ThemeWin32Classic.cs, DataGrid.cs: some changes so that the

+ 3 - 3
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs

@@ -522,12 +522,12 @@ namespace System.Windows.Forms {
 			}
 
 			set {
+				if (value == Text)
+					return;
+
 				if ((value != null) && (value != "")) {
 					Line	line;
 
-					if (value == Text)
-						return;
-
 					if (multiline) {
 						string[]	lines;