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.
This commit is contained in:
.CooCoo authored and GitHub committed 2026-11-15 05:51:45 +00:00
1 parent 0461ef4f5e
commit bcebb83a93
1 file changed
+1
+1
View File
@@ -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());