Commit 7b53cc6 1 parent c258616 commit 7b53cc6 Copy full SHA for 7b53cc6
File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,11 @@ impl Outline {
226
226
self . push_contour ( ContourRectClipper :: new ( clip_rect, contour) . clip ( ) ) ;
227
227
}
228
228
}
229
+
230
+ #[ inline]
231
+ pub fn close_all_contours ( & mut self ) {
232
+ self . contours . iter_mut ( ) . for_each ( |contour| contour. close ( ) ) ;
233
+ }
229
234
}
230
235
231
236
impl Debug for Outline {
Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ impl Scene {
138
138
outline = Outline :: new ( ) ;
139
139
} else {
140
140
outline = ( * original_outline) . clone ( ) ;
141
+ outline. close_all_contours ( ) ;
141
142
outline. clip_against_polygon ( clip_polygon) ;
142
143
outline. apply_perspective ( perspective) ;
143
144
@@ -147,6 +148,7 @@ impl Scene {
147
148
_ => {
148
149
// TODO(pcwalton): Short circuit.
149
150
outline = ( * original_outline) . clone ( ) ;
151
+ outline. close_all_contours ( ) ;
150
152
if options. transform . is_2d ( ) || options. subpixel_aa_enabled {
151
153
let mut transform = match options. transform {
152
154
PreparedRenderTransform :: Transform2D ( transform) => transform,
You can’t perform that action at this time.
0 commit comments