Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
	* ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
	  will always match. Instead return -1. Fixes #76464.


svn path=/trunk/mcs/; revision=54686
  • Loading branch information
Peter Dennis Bartok committed Dec 21, 2005
1 parent 9e246be commit d45a5cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
@@ -1,3 +1,8 @@
2005-12-21 Peter Dennis Bartok <pbartok@novell.com>

* ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
will always match. Instead return -1. Fixes #76464.

2005-12-21 Peter Dennis Bartok <pbartok@novell.com>

* TextControl.cs (RecalculateLine): Only wrap if the wrap point is
Expand Down
Expand Up @@ -1083,6 +1083,10 @@ internal void DropDownListBoxFinished ()

private int FindStringCaseInsensitive (string search)
{
if (search.Length == 0) {
return -1;
}

for (int i = 0; i < Items.Count; i++)
{
if (String.Compare (GetItemText (Items[i]), 0, search, 0, search.Length, true) == 0)
Expand Down

0 comments on commit d45a5cf

Please sign in to comment.