summaryrefslogtreecommitdiffstats
path: root/graphics/src/widget/container.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-11-23 00:31:50 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-11-23 00:31:50 +0100
commitf41eacc3dcc849f43c875872259ef8106e10be03 (patch)
treeb3aafbca00d799842e56eb3bbfc4a9292248f816 /graphics/src/widget/container.rs
parentea1a7248d257c7c9e4a1f3989e68b58a6bc0c4ff (diff)
downloadiced-f41eacc3dcc849f43c875872259ef8106e10be03.tar.gz
iced-f41eacc3dcc849f43c875872259ef8106e10be03.tar.bz2
iced-f41eacc3dcc849f43c875872259ef8106e10be03.zip
Use `f32` for `border_width` and `border_radius`
Diffstat (limited to 'graphics/src/widget/container.rs')
-rw-r--r--graphics/src/widget/container.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/src/widget/container.rs b/graphics/src/widget/container.rs
index 4854f589..aae3e1d8 100644
--- a/graphics/src/widget/container.rs
+++ b/graphics/src/widget/container.rs
@@ -62,7 +62,7 @@ pub(crate) fn background(
bounds: Rectangle,
style: &container::Style,
) -> Option<Primitive> {
- if style.background.is_some() || style.border_width > 0 {
+ if style.background.is_some() || style.border_width > 0.0 {
Some(Primitive::Quad {
bounds,
background: style