mirror of
https://github.com/storytold/deckcraft.git
synced 2026-11-01 06:26:59 -06:00
Round-trip tables, charts, animation, media, sections and masters
An owned corpus of those deck kinds survives open, save and reopen. The check found the handout master — printed header, footer, date and slide number — was dropped on save, so import and export now keep that part.
This commit is contained in:
@@ -878,6 +878,10 @@ impl Presentation {
|
||||
for md in &self.media {
|
||||
m = m.max(md.id.0);
|
||||
}
|
||||
for extra in [self.notes_master.as_deref(), self.handout_master.as_deref()].into_iter().flatten() {
|
||||
m = m.max(extra.id.0);
|
||||
walk(&extra.shapes, &mut |sh, _| m = m.max(sh.id.0));
|
||||
}
|
||||
self.next_id = m;
|
||||
}
|
||||
pub fn slide_index(&self, id: SlideId) -> Option<usize> {
|
||||
|
||||
Reference in New Issue
Block a user