mirror of
https://github.com/typst/typst
synced 2025-07-30 15:57:54 +08:00
Compare commits
25 Commits
34116cddf6
...
34b1be9151
Author | SHA1 | Date | |
---|---|---|---|
|
34b1be9151 | ||
|
0f66205cc2 | ||
|
70b4774535 | ||
|
a606f4d796 | ||
|
34f17f695b | ||
|
6873ea4745 | ||
|
673fe6ffb7 | ||
|
5cf25874bc | ||
|
4163fd59a6 | ||
|
1fbfb1e796 | ||
|
ac95d8ba30 | ||
|
c9348a8b26 | ||
|
42b45473c7 | ||
|
75f4a964f9 | ||
|
1d7e8a7247 | ||
|
7d4981a621 | ||
|
ed031e4fcd | ||
|
47f7d085f4 | ||
|
901e4c6a95 | ||
|
912370abde | ||
|
315a3f192e | ||
|
5e41d13dc2 | ||
|
19ab32dd0d | ||
|
88c234eb44 | ||
|
94cf897d37 |
@ -10,7 +10,7 @@ use typst_utils::NonZeroExt;
|
||||
|
||||
use crate::diag::{bail, StrResult};
|
||||
use crate::foundations::{Content, Label, Repr, Selector};
|
||||
use crate::introspection::{Locatable, Location, Tag};
|
||||
use crate::introspection::{Location, Tag};
|
||||
use crate::layout::{Frame, FrameItem, Point, Position, Transform};
|
||||
use crate::model::Numbering;
|
||||
|
||||
@ -422,11 +422,9 @@ impl IntrospectorBuilder {
|
||||
) {
|
||||
match tag {
|
||||
Tag::Start(elem) => {
|
||||
if elem.can::<dyn Locatable>() {
|
||||
let loc = elem.location().unwrap();
|
||||
if self.seen.insert(loc) {
|
||||
sink.push((elem.clone(), position));
|
||||
}
|
||||
let loc = elem.location().unwrap();
|
||||
if self.seen.insert(loc) {
|
||||
sink.push((elem.clone(), position));
|
||||
}
|
||||
}
|
||||
Tag::End(loc, key) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user