mirror of
https://github.com/typst/typst
synced 2025-07-28 14:57:54 +08:00
Next twice
This commit is contained in:
parent
ac95d8ba30
commit
1fbfb1e796
@ -536,6 +536,7 @@ fn prepare(
|
|||||||
// when it stems from a query.
|
// when it stems from a query.
|
||||||
let key = typst_utils::hash128(&elem);
|
let key = typst_utils::hash128(&elem);
|
||||||
if elem.location().is_none() && (locatable(elem) || elem.label().is_some()) {
|
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);
|
let loc = locator.next_location(engine.introspector, key);
|
||||||
elem.set_location(loc);
|
elem.set_location(loc);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user