poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56887] New: [PATCH] Remove names pointing at a sheet when the sheet is deleted
Date Tue, 26 Aug 2014 11:33:51 GMT
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: dev@poi.apache.org
          Reporter: dtn-asfbugs@corefiling.co.uk

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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message