From 4bd8a755040b82998f4c3149ecfd2143ff7082a9 Mon Sep 17 00:00:00 2001 From: Eric Kaden <608341+EricKaden@users.noreply.github.com> Date: Sun, 25 Oct 2026 15:40:21 -0400 Subject: [PATCH] M12: the calculations after a focus script get the session's time scale too --- crates/engine/src/xfa.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/engine/src/xfa.rs b/crates/engine/src/xfa.rs index 71b40aa956..8a289ae211 100644 --- a/crates/engine/src/xfa.rs +++ b/crates/engine/src/xfa.rs @@ -938,7 +938,7 @@ pub(crate) fn on_focus(doc: &mut pdfcraft_cos::Document, tpl: &Template, som: &s } if !r.changes.is_empty() { // The calculations that follow get a budget of their own. - r.clock = Clock::start(OPEN_BUDGET_MS); + r.clock = Clock::start(OPEN_BUDGET_MS.saturating_mul(u64::from(r.run.time_scale))); r.calculates()?; } r.finish()