From 981c578ff9f1ef33a9ab00bc0ecf8fcacabc156f Mon Sep 17 00:00:00 2001 From: Johannes Wolf <519002+johannes-wolf@users.noreply.github.com> Date: Wed, 19 Apr 2023 16:30:27 +0200 Subject: path: Use close_path() for closing paths (#801) --- library/src/visualize/path.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'library/src/visualize') 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. -- cgit v1.2.3