Merged gcj-eclipse branch to trunk.
From-SVN: r120621
This commit is contained in:
@@ -511,9 +511,10 @@ public class Raster
|
||||
int height, int childMinX, int childMinY,
|
||||
int[] bandList)
|
||||
{
|
||||
/* FIXME: Throw RasterFormatException if child bounds extends
|
||||
beyond the bounds of this raster. */
|
||||
|
||||
if (parentX < minX || parentX + width > minX + this.width
|
||||
|| parentY < minY || parentY + height > minY + this.height)
|
||||
throw new RasterFormatException("Child raster extends beyond parent");
|
||||
|
||||
SampleModel sm = (bandList == null) ?
|
||||
sampleModel :
|
||||
sampleModel.createSubsetSampleModel(bandList);
|
||||
|
||||
Reference in New Issue
Block a user