summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/math/attach.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-library/src/math/attach.rs')
-rw-r--r--crates/typst-library/src/math/attach.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/typst-library/src/math/attach.rs b/crates/typst-library/src/math/attach.rs
index d526aba5..0dda1d33 100644
--- a/crates/typst-library/src/math/attach.rs
+++ b/crates/typst-library/src/math/attach.rs
@@ -59,9 +59,9 @@ impl Packed<AttachElem> {
macro_rules! merge {
($content:ident) => {
- if base.$content.is_none() && elem.$content.is_some() {
+ if !base.$content.is_set() && elem.$content.is_set() {
base.$content = elem.$content.clone();
- elem.$content = None;
+ elem.$content.unset();
}
};
}
@@ -152,7 +152,6 @@ pub struct StretchElem {
/// The size to stretch to, relative to the maximum size of the glyph and
/// its attachments.
- #[resolve]
#[default(Rel::one())]
pub size: Rel<Length>,
}