Don't reuse PathBuilder after calling finish()

This commit is contained in:
pylbrecht 2019-10-24 19:14:28 +02:00
parent 65a21e9bad
commit c8025c9147

View file

@ -563,6 +563,7 @@ impl GenericPathBuilder for PathBuilder {
fn get_current_point(&mut self) -> Point2D<f32> { fn get_current_point(&mut self) -> Point2D<f32> {
let path = self.finish(); let path = self.finish();
self.0 = Some(path.as_raqote().clone().into());
for op in path.as_raqote().ops.iter().rev() { for op in path.as_raqote().ops.iter().rev() {
match op { match op {