Skip to content

Commit

Permalink
Ensure there's a subpath for the first control point
Browse files Browse the repository at this point in the history
  • Loading branch information
pylbrecht committed Jan 6, 2020
1 parent 0d142be commit f691acd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
5 changes: 4 additions & 1 deletion components/canvas/canvas_data.rs
Expand Up @@ -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;
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit f691acd

Please sign in to comment.