summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-02-24 13:56:37 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-02-24 13:56:37 +0100
commit700262e05c76e003158acfeb8edd9f6b026d78cf (patch)
treee1bdd9700a5630d320f2d37dfd28efbe653a2ce6 /native
parentb2c87cdd238baa1562dc0422c00d1bf62132700f (diff)
downloadiced-700262e05c76e003158acfeb8edd9f6b026d78cf.tar.gz
iced-700262e05c76e003158acfeb8edd9f6b026d78cf.tar.bz2
iced-700262e05c76e003158acfeb8edd9f6b026d78cf.zip
Fix `checkbox` example
Diffstat (limited to 'native')
-rw-r--r--native/src/widget/checkbox.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/widget/checkbox.rs b/native/src/widget/checkbox.rs
index 0e21e995..6ba06d3b 100644
--- a/native/src/widget/checkbox.rs
+++ b/native/src/widget/checkbox.rs
@@ -267,7 +267,7 @@ where
code_point,
size,
} = &self.icon;
- let size = size.map(f32::from).unwrap_or(bounds.height * 0.7);
+ let size = size.unwrap_or(bounds.height * 0.7);
if self.is_checked {
renderer.fill_text(text::Text {