mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Don't reuse PathBuilder after calling finish()
This commit is contained in:
parent
65a21e9bad
commit
c8025c9147
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue