diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-21 14:09:30 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-21 14:09:30 +0100 |
| commit | fd7b9d9e1eb8eef60c20e65dfc946c4424f02c8f (patch) | |
| tree | b650dd73e70fd98b5166a6db657570aa9035ac92 /library/src/graphics/shape.rs | |
| parent | 36ea0b05c9986288eec8bc4a6b35a89b6ea0d3f4 (diff) | |
Move destination property from text to link
Diffstat (limited to 'library/src/graphics/shape.rs')
| -rw-r--r-- | library/src/graphics/shape.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/src/graphics/shape.rs b/library/src/graphics/shape.rs index e336c3a3..d484b993 100644 --- a/library/src/graphics/shape.rs +++ b/library/src/graphics/shape.rs @@ -1,7 +1,7 @@ use std::f64::consts::SQRT_2; use crate::prelude::*; -use crate::text::TextNode; +use crate::text::LinkNode; /// A sizable and fillable shape with optional content. #[derive(Debug, Hash)] @@ -161,7 +161,7 @@ impl<const S: ShapeKind> LayoutInline for ShapeNode<S> { } // Apply link if it exists. - if let Some(url) = styles.get(TextNode::LINK) { + if let Some(url) = styles.get(LinkNode::DEST) { frame.link(url.clone()); } |
