Skip to content

FIX Firefox getCTM returning null #197

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

Merged
merged 1 commit into from
Jun 4, 2020
Merged

Conversation

jonathanlurie
Copy link
Contributor

In the function initTransform(), the line

var screenCTM = svgElement.getCTM()

returns null on Firefox, making it impossible to do further operations, hence crashing the thing.

The fix checks if the matrix is null and if so replaces it by a fresh diagonal matrix.

Tested on MacOS 10.14:

  • Firefox 69.0.3
  • Chrome 83
  • Safari 12

@anvaka
Copy link
Owner

anvaka commented Jun 4, 2020

Thank you! Patched in v9.2.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants