Summary: | Image is incorrectly resized if custom row height is set | ||
---|---|---|---|
Product: | POI | Reporter: | Yegor Kozlov <yegor> |
Component: | SXSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Bug Depends on: | |||
Bug Blocks: | 55075 | ||
Attachments: |
Test case for differences in image output for the formats HSSF, XSSF and SXSSF
Screenshot showing the difference in the files from XSSF and SXSSF |
Description
Yegor Kozlov
2011-05-19 12:24:25 UTC
Created attachment 32595 [details]
Screenshot showing the difference in the files from XSSF and SXSSF
The difference is in the "to" element of the "twoCellAnchor" in xl/drawings/drawing1.xml as shown in the screenshot
The problem happens because XSSFDrawing() which is constructed via SXSSFSheet.createDrawingPatriarch() receives the XSSFSheet, not SXSSFSheet and thus getRow(0) returns null instead of the correct Row object, which later on causes different size calculations, e.g. in ImageUtils.getRowHeightInPixels() |