SwissAS / jcgm-core

An open source Java implementation to interpret and render Computer Graphics Metafile (CGM) graphics files.
Other
8 stars 6 forks source link

[FIX] TileElement - temporary TIFF file generation #8

Closed daviddiana11 closed 1 year ago

daviddiana11 commented 1 year ago

In case of tile having a T6 compression, the generation of temporary TIFF file could lead to an ArrayIndexOutOfBoundsException. This commit fixes the TIFF file generation in case the given nCellsInLineDirectionis higher than the (amount of lines * nCellsPerTileInLineDirection), by always computing the amount of cells for last row of tiles.

image