Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for existing xf index in mapping array before accessing it #1239

Merged
merged 1 commit into from
Nov 17, 2019

Conversation

dendemann
Copy link

@dendemann dendemann commented Nov 13, 2019

This is:

- [x] a bugfix
- [ ] a new feature

Checklist:

Why this change is needed?

Fixes issue #1238

@PowerKiKi PowerKiKi merged commit 3fc2fa4 into PHPOffice:master Nov 17, 2019
@oleibman oleibman mentioned this pull request Jun 15, 2020
5 tasks
MarkBaker pushed a commit that referenced this pull request Jun 19, 2020
This problem is the same as #1238, which was resolved by #1239.
For that issue, the fix was to check in one place whether
$this->mapCellXfIndex[$xfIndex] was set before using it.
The sample spreadsheet supplied as a description for this
problem had exactly the same problem in 2 other places in the code.
In addition, there were 7 other places in the code where that
particular item was used unchecked. This fix corrects all 9 locations.
The spreadsheet supplied with the problem is used as the basis
for some new tests, which particularly test column dimensions
and styles, the problems involved in this case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants