Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Conversation

@HustLion
Copy link
Contributor

@HustLion HustLion commented May 15, 2019

the canvas.save() and canvas.restore() in the drawShape() function weren't paired when strokeWidth != null && strokeWidth > 0 fails. When we set the stroke to be transparent, the condition strokeWidth != null && strokeWidth > 0 fails, and the canvas.restore() function that was inside the condition block wasn't called.

I've adjusted the canvas.restore() call to a proper position in this commit.

the canvas.save() and canvas.restore() in the drawShape() function wasn't paired when `strokeWidth != null && strokeWidth > 0` fails. When we set the stroke to be transparent, the `strokeWidth != null && strokeWidth > 0` fail, and the canvas.restore() wasn't called.

I've adjusted the `canvas.restore()` call to a proper position in this commit.
Copy link
Member

@PonyCui PonyCui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@PonyCui PonyCui merged commit 3fe4c67 into svga:master May 15, 2019
@hhyq520 hhyq520 mentioned this pull request Mar 9, 2022
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.

2 participants