Skip to content
Permalink
Browse files

Ensure there's a subpath for the first control point

  • Loading branch information
pylbrecht committed Jan 6, 2020
1 parent 0d142be commit 215a2c7e605e17afb5d74deb3e5ffc08cee856fd
@@ -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.

This file was deleted.

0 comments on commit 215a2c7

Please sign in to comment.
You can’t perform that action at this time.