Commit 586b870d by Tom Tromey Committed by Tom Tromey

SampleModel.java (getPixel): Set correct array element.

	* java/awt/image/SampleModel.java (getPixel): Set correct array
	element.  From Chris Meyer.

From-SVN: r44871
parent 7ee20eba
2001-08-09 Tom Tromey <tromey@redhat.com>
* java/awt/image/SampleModel.java (getPixel): Set correct array
element. From Chris Meyer.
2001-08-10 Loren J. Rittle <ljrittle@acm.org> 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
* java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN. * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
......
/* Copyright (C) 2000 Free Software Foundation /* Copyright (C) 2000, 2001 Free Software Foundation
This file is part of libgcj. This file is part of libgcj.
...@@ -179,7 +179,7 @@ public abstract class SampleModel ...@@ -179,7 +179,7 @@ public abstract class SampleModel
for (int b=0; b<numBands; b++) for (int b=0; b<numBands; b++)
{ {
fArray[0] = getSampleFloat(x, y, b, data); fArray[b] = getSampleFloat(x, y, b, data);
} }
return fArray; return fArray;
} }
...@@ -188,7 +188,7 @@ public abstract class SampleModel ...@@ -188,7 +188,7 @@ public abstract class SampleModel
if (dArray == null) dArray = new double[numBands]; if (dArray == null) dArray = new double[numBands];
for (int b=0; b<numBands; b++) for (int b=0; b<numBands; b++)
{ {
dArray[0] = getSampleDouble(x, y, b, data); dArray[b] = getSampleDouble(x, y, b, data);
} }
return dArray; return dArray;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment