[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit FormControl.java,1.37,1.38
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2003-04-01 13:42:15
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit
In directory sc8-pr-cvs1:/tmp/cvs-serv11716/src/com/meterware/httpunit
Modified Files:
FormControl.java
Log Message:
#709979: Correct Select.selectedIndex when nothing selected
Index: FormControl.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/FormControl.java,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- FormControl.java 13 Mar 2003 18:20:49 -0000 1.37
+++ FormControl.java 1 Apr 2003 13:42:09 -0000 1.38
@@ -1092,7 +1092,7 @@
for (int i = 0; i < _options.length; i++) {
if (_options[i].isSelected()) return i;
}
- return -1;
+ return _multiSelect ? -1 : 0;
}
|