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 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.

0 comments on commit f691acd

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