summaryrefslogtreecommitdiffstats
path: root/native/src/widget/checkbox.rs
diff options
context:
space:
mode:
authorLibravatar Olivier Pinon <op@impero.com>2021-12-10 22:53:00 +0100
committerLibravatar Olivier Pinon <op@impero.com>2021-12-10 23:34:02 +0100
commitd06e6bfb5111c1f2d2fd43c10a0c69870539742f (patch)
treed1c7095e32254305c53e9f03f8a3da9510d80275 /native/src/widget/checkbox.rs
parenta7bcd65bb82a2640e10cbe25bf24bc003d059857 (diff)
downloadiced-d06e6bfb5111c1f2d2fd43c10a0c69870539742f.tar.gz
iced-d06e6bfb5111c1f2d2fd43c10a0c69870539742f.tar.bz2
iced-d06e6bfb5111c1f2d2fd43c10a0c69870539742f.zip
Lower text::Renderer's Font bound from Copy to Clone
Diffstat (limited to 'native/src/widget/checkbox.rs')
-rw-r--r--native/src/widget/checkbox.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/checkbox.rs b/native/src/widget/checkbox.rs
index 2af2d60c..5a8dbc83 100644
--- a/native/src/widget/checkbox.rs
+++ b/native/src/widget/checkbox.rs
@@ -157,7 +157,7 @@ where
)
.push(
Text::new(&self.label)
- .font(self.font)
+ .font(self.font.clone())
.width(self.width)
.size(self.text_size.unwrap_or(renderer.default_size())),
)
@@ -261,7 +261,7 @@ where
style,
label_layout,
&self.label,
- self.font,
+ self.font.clone(),
self.text_size,
self.text_color.or(Some(custom_style.text_color)),
alignment::Horizontal::Left,