mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-15 23:02:32 +00:00
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:
1 parent
0461ef4f5e
commit
bcebb83a93
1 file changed
+1
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user