https://issues.apache.org/bugzilla/show_bug.cgi?id=48415
Summary: HSSFPicture.resize() works incorrectly if default font
size changed
Product: POI
Version: 3.5-FINAL
Platform: PC
OS/Version: Windows Server 2003
Status: NEW
Severity: normal
Priority: P2
Component: HSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
Test steps:
1.1 Use Excel to new an Excel workbook
1.2 Save and close the workbook as Book1.xls
1.3 Use POI to open Book1.xls and insert an image
1.4 Call HSSFPicture.resize()
1.5 Save and close Book1.xls
2.1 Use Excel to new an Excel workbook
2.2 Modify the default font size (For example, from 10 to 20)
2.3 Save and close the workbook as Book2.xls
2.4 Use POI to open Book2.xls and insert the same image used in the previous
test
2.5 Call HSSFPicture.resize()
2.6 Save and close Book2.xls
Then use Excel to open these two workbooks, you can see the same image in these
workbooks do NOT have the same size! The later one stretchs horizontally!
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]