https://bz.apache.org/bugzilla/show_bug.cgi?id=64327
Bug ID: 64327
Summary: SXSSFSheet returns true in
isColumnTrackedForAutoSizing if you track all columns
and then untrack one
Product: POI
Version: 4.1.2-FINAL
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: SXSSF
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Method isColumnTrackedForAutoSizing in SXSSFSheet
https://github.com/apache/poi/blob/84ba670e27948adcb572caa5065affbf1aa3a769/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFSheet.java#L1502-L1505
returns true for untracked column if you invoked trackAllColumnsForAutoSizing()
steps:
1. Create workbook, SXSSFSheet, and row with 2 cells
2. invoke trackAllColumnsForAutoSizing() on the sheet
3. invoke untrackColumnForAutoSizing(0) on the sheet
4. invoke isColumnTrackedForAutoSizing(0) on the sheet
expected result: false
actual result: true
it's because `AutoSizeColumnTracker` checks `trackAllColumns` first
https://github.com/apache/poi/blob/84ba670e27948adcb572caa5065affbf1aa3a769/src/ooxml/java/org/apache/poi/xssf/streaming/AutoSizeColumnTracker.java#L140-L142
--
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]