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:
parent
661ef69489
commit
dc613b2ba7
1 changed files with 1 additions and 3 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue