summaryrefslogtreecommitdiff
path: root/src/library/shapes.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-06-11 14:42:20 +0200
committerLaurenz <laurmaedje@gmail.com>2021-06-11 14:42:20 +0200
commit4017b5a9f67e06145129d75de452c8a42e2d2f5a (patch)
tree8ce9c6f80faa75ed62d4f7fbe31d3ceee6e8d4ba /src/library/shapes.rs
parent4dbd9285c91d59d527f4324df4aaf239ecb007ca (diff)
Push some nodes directly into the stack
Diffstat (limited to 'src/library/shapes.rs')
-rw-r--r--src/library/shapes.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/shapes.rs b/src/library/shapes.rs
index 287b1c10..3c6f801d 100644
--- a/src/library/shapes.rs
+++ b/src/library/shapes.rs
@@ -67,13 +67,13 @@ fn rect_impl(
let fixed = FixedNode { width, height, child: stack.into() };
if let Some(color) = fill {
- ctx.push(BackgroundNode {
+ ctx.push_into_par(BackgroundNode {
shape: BackgroundShape::Rect,
fill: Fill::Color(color),
child: fixed.into(),
});
} else {
- ctx.push(fixed);
+ ctx.push_into_par(fixed);
}
})
}
@@ -151,13 +151,13 @@ fn ellipse_impl(
};
if let Some(color) = fill {
- ctx.push(BackgroundNode {
+ ctx.push_into_par(BackgroundNode {
shape: BackgroundShape::Ellipse,
fill: Fill::Color(color),
child: fixed.into(),
});
} else {
- ctx.push(fixed);
+ ctx.push_into_par(fixed);
}
})
}