summaryrefslogtreecommitdiffstats
path: root/widget/src/checkbox.rs
diff options
context:
space:
mode:
Diffstat (limited to 'widget/src/checkbox.rs')
-rw-r--r--widget/src/checkbox.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/widget/src/checkbox.rs b/widget/src/checkbox.rs
index 225c316d..e5abfbb4 100644
--- a/widget/src/checkbox.rs
+++ b/widget/src/checkbox.rs
@@ -358,12 +358,14 @@ where
{
let label_layout = children.next().unwrap();
+ let state: &widget::text::State<Renderer::Paragraph> =
+ tree.state.downcast_ref();
crate::text::draw(
renderer,
defaults,
label_layout,
- tree.state.downcast_ref(),
+ state.0.raw(),
crate::text::Style {
color: style.text_color,
},