Issue #1143 Fixed GriddedImageDisplay2 which is what the CWAT resource uses so stops incorrectly doubling the size of the short array used for display.

Change-Id: I7fd59086fc75b7b72ebece857273c8d0c58d2abd

Former-commit-id: 0b361078b3 [formerly 5698f8158b32789bab532e8820521f609e23a8c8]
Former-commit-id: 2b20299319
This commit is contained in:
Max Schenkelberg 2012-09-13 16:40:00 -05:00
parent 661ef69489
commit dc613b2ba7

View file

@ -170,10 +170,8 @@ public class GriddedImageDisplay2 extends AbstractTileSet {
private IImage createShortTile(IGraphicsTarget target, Rectangle rect,
int width, int i, int j) {
// short is 2 bytes
int elemSize = 2;
// buffer to copy into
short[] dest = new short[rect.width * rect.height * elemSize];
short[] dest = new short[rect.width * rect.height];
ShortBuffer srcBuff = (ShortBuffer) data;
short[] tmp = new short[rect.width];