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

Ensure subpath for control point of CanvasRenderingContext2D.quadraticCurveTo() #25445

Merged
merged 2 commits into from Jan 8, 2020
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

Ensure there's a subpath for the first control point

  • Loading branch information
pylbrecht committed Jan 6, 2020
commit f691acd9582ffb0de292a2d8588d148c1a1ebca6
@@ -798,7 +798,10 @@ impl<'a> CanvasData<'a> {
pub fn arc_to(&mut self, cp1: &Point2D<f32>, cp2: &Point2D<f32>, radius: f32) {
let cp0 = match self.path_builder().current_point() {
Some(p) => p,
None => return,
None => {
self.path_builder().move_to(cp1);
cp1.clone()
},
};
let cp1 = *cp1;
let cp2 = *cp2;

This file was deleted.

This file was deleted.

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.