(setRows): Check newRows, not rows.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58984
138bc75d-0d04-0410-961f-
82ee72b054a4
2002-11-10 Tom Tromey <tromey@redhat.com>
+ * java/awt/GridLayout.java (setColumns): Check newCols, not cols.
+ (setRows): Check newRows, not rows.
+
* jni.cc (_Jv_GetJNIEnvNewFrame): Set env->ex in all cases.
2002-11-09 Tom Tromey <tromey@redhat.com>
*/
public void setColumns (int newCols)
{
- if (cols < 0)
+ if (newCols < 0)
throw new IllegalArgumentException ("number of columns cannot be negative");
if (newCols == 0 && rows == 0)
throw new IllegalArgumentException ("number of rows is already 0");
*/
public void setRows (int newRows)
{
- if (rows < 0)
+ if (newRows < 0)
throw new IllegalArgumentException ("number of rows cannot be negative");
if (newRows == 0 && cols == 0)
throw new IllegalArgumentException ("number of columns is already 0");