summaryrefslogtreecommitdiff
path: root/src/shapes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/shapes.rs')
-rw-r--r--src/shapes.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shapes.rs b/src/shapes.rs
index b21e6339..2d26bbde 100644
--- a/src/shapes.rs
+++ b/src/shapes.rs
@@ -116,8 +116,11 @@ fn draw_basic_shape(
context_fill: fill_paint.clone(),
};
+ let extents = draw_ctx.compute_path_extents(&shape_def.path)?;
+
let shape = Shape {
path: shape_def.path,
+ extents,
is_visible,
paint_order,
stroke,