From bcebb83a93d7f3013f24583ee18a9eb69a21b028 Mon Sep 17 00:00:00 2001 From: ".CooCoo" Date: Sat, 14 Nov 2026 21:51:45 -0800 Subject: [PATCH] Captions: a live caption update gives the document a new revision (#2773) When a command leaves a live caption behind its source, the pass after the command rewrites the caption's text but kept the document's revision. The Pages panel thumbnails, the separations preview, the preflight worker and the Links panel key their caches by (uid, revision), so they kept drawing the old caption. The pass now bumps the revision when it changes the document, as Smart Text Reflow and auto-size already do. --- crates/engine/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/engine/src/lib.rs b/crates/engine/src/lib.rs index 1c59a6054..48c60cadf 100644 --- a/crates/engine/src/lib.rs +++ b/crates/engine/src/lib.rs @@ -690,6 +690,7 @@ impl Session { if cmd::captions::refresh_live(&mut d) { cmd::captions::clamp_text_selection(&d, &mut st.selection); st.doc = Arc::new(d); + st.bump_revision(); } } self.autosize_changed(spec, before.as_ref());