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

Zoom scale fix #350

Closed
wants to merge 3 commits into from
Closed

Zoom scale fix #350

wants to merge 3 commits into from

Conversation

jasverix
Copy link
Contributor

This is:

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

Checklist:

Why this change is needed?

Some computer programs that export excel files has a small error in their files where zoomScaleNormal="0" in the XML. I opened the file in 7zip and saw the problem.

Excel will open the file without any problems.

I agree that the methods in SheetView should throw exceptions when manually editing files in PhpSpreadsheet. But when reading files, we should be a little nicer, so our customers won't have to fix their files in Excel before importing to our system.

Some computer programs will output xlsx files that do not compare 100%
to the standards. Excel will open the file without any problem.

setZoomScaleNormal() should throw exception when manually setting the
scale to less than or equals 0, but when reading files, we should
be able to read a file with such error, as Excel does.
@PowerKiKi PowerKiKi closed this in 2e37578 Feb 11, 2018
Dfred pushed a commit to Dfred/PhpSpreadsheet that referenced this pull request Nov 20, 2018
Some computer programs will output xlsx files that do not compare 100%
to the standards. Excel will open the file without any problem.

setZoomScaleNormal() should throw exception when manually setting the
scale to less than or equals 0, but when reading files, we should
be able to read a file with such error, as Excel does.

Closes PHPOffice#350
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.

1 participant