summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorJohannes Wolf <519002+johannes-wolf@users.noreply.github.com>2023-04-19 16:30:27 +0200
committerGitHub <noreply@github.com>2023-04-19 16:30:27 +0200
commit981c578ff9f1ef33a9ab00bc0ecf8fcacabc156f (patch)
tree3a3eaf8ae736696a8fe699cff59907899366e0b0 /library
parent66c707f2169c00eee739abe92d876c9288fc038d (diff)
path: Use close_path() for closing paths (#801)
Diffstat (limited to 'library')
-rw-r--r--library/src/visualize/path.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/src/visualize/path.rs b/library/src/visualize/path.rs
index 436ef5f0..db062093 100644
--- a/library/src/visualize/path.rs
+++ b/library/src/visualize/path.rs
@@ -123,6 +123,7 @@ impl Layout for PathElem {
let to_point = points[0];
add_cubic(from_point, to_point, from, to);
+ path.close_path();
}
// Prepare fill and stroke.