Compare commits

..

No commits in common. "34b1be91513e7be30205e364440727984948ff51" and "34116cddf67aed02d93aaeaea9e72d6a78b48442" have entirely different histories.

View File

@ -10,7 +10,7 @@ use typst_utils::NonZeroExt;
use crate::diag::{bail, StrResult};
use crate::foundations::{Content, Label, Repr, Selector};
use crate::introspection::{Location, Tag};
use crate::introspection::{Locatable, Location, Tag};
use crate::layout::{Frame, FrameItem, Point, Position, Transform};
use crate::model::Numbering;
@ -422,9 +422,11 @@ impl IntrospectorBuilder {
) {
match tag {
Tag::Start(elem) => {
let loc = elem.location().unwrap();
if self.seen.insert(loc) {
sink.push((elem.clone(), position));
if elem.can::<dyn Locatable>() {
let loc = elem.location().unwrap();
if self.seen.insert(loc) {
sink.push((elem.clone(), position));
}
}
}
Tag::End(loc, key) => {