Next twice

This commit is contained in:
Laurenz 2025-07-18 15:13:05 +02:00
parent ac95d8ba30
commit 1fbfb1e796

View File

@ -536,6 +536,7 @@ fn prepare(
// when it stems from a query.
let key = typst_utils::hash128(&elem);
if elem.location().is_none() && (locatable(elem) || elem.label().is_some()) {
std::hint::black_box(locator.next_location(engine.introspector, key));
let loc = locator.next_location(engine.introspector, key);
elem.set_location(loc);
}