https://issues.apache.org/bugzilla/show_bug.cgi?id=56887
Bug ID: 56887
Summary: [PATCH] Remove names pointing at a sheet when the
sheet is deleted
Product: POI
Version: 3.11-dev
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P2
Component: XSSF
Assignee: [email protected]
Reporter: [email protected]
Created attachment 31942
--> https://issues.apache.org/bugzilla/attachment.cgi?id=31942&action=edit
Patch: remove names referencing removed sheet
Summary: [PATCH] Remove names pointing at a sheet when the sheet is deleted
See attached patch.
If a Name is scoped to a particular worksheet, then onSheetDelete removes the
name when the sheet is removed.
If the Name is however global, but points at the sheet being deleted (so that
Name.getSheetName refers to the deleted sheet), the Name is not removed.
It'd be preferable if the Name was also removed in this case. Patch including
unit test attached.
--
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]