summaryrefslogtreecommitdiffstats
path: root/native/src/widget/checkbox.rs
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/widget/checkbox.rs')
-rw-r--r--native/src/widget/checkbox.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/native/src/widget/checkbox.rs b/native/src/widget/checkbox.rs
index 138c458c..0e21e995 100644
--- a/native/src/widget/checkbox.rs
+++ b/native/src/widget/checkbox.rs
@@ -288,7 +288,6 @@ where
{
let label_layout = children.next().unwrap();
- let font = self.font.unwrap_or_else(|| renderer.default_font());
widget::text::draw(
renderer,
@@ -296,7 +295,7 @@ where
label_layout,
&self.label,
self.text_size,
- font,
+ self.font,
widget::text::Appearance {
color: custom_style.text_color,
},