Skip to content
This repository has been archived by the owner on Mar 9, 2020. It is now read-only.

Fix issue with hyperlinks xml tag being written to WorksheetXml when no hyperlinks exist in the worksheet #17

Merged
merged 1 commit into from
Oct 6, 2017

Conversation

jacobmalliet
Copy link

-- Copied from Codeplex --

While working with EPPlus I noticed an issue with excels which have had their hyperlinks removed from a worksheet. Currently when you remove all hyperlinks from a sheet an empty hyperlinks tag is still written to the Worksheet Xml. Having this empty tag was causing a notification of the file being corrupt (Was recoverable) when opened in excel.

I added an extra check within the ExcelWorksheet.UpdateHyperLinks method to only place the hyperlinks tag once a non-null Uri is encountered.

Let me know if you need any other details or if you think this change will have a larger impact that anticipated.

@JanKallman JanKallman merged commit 21c1f80 into JanKallman:master Oct 6, 2017
@JanKallman
Copy link
Owner

Thanks

@jacobmalliet jacobmalliet deleted the RemoveHyperLinksTag branch October 6, 2017 15:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants