diff --git a/crates/ui-egui/src/dialogs/flatten.rs b/crates/ui-egui/src/dialogs/flatten.rs index e39c8e8bdf..92ee610e3b 100644 --- a/crates/ui-egui/src/dialogs/flatten.rs +++ b/crates/ui-egui/src/dialogs/flatten.rs @@ -477,7 +477,9 @@ mod tests { }); fixture.room(egui::vec2(880.0, 720.0)); let ctx = fixture.ctx().clone(); + let document = app.borrow().session.active().unwrap().uid; let mut job = SavePdfJob { + document, path: None, save_mode: None, flattener: Some(FlattenOptions { line_art_ppi: 611.0, ..FlattenOptions::default() }), diff --git a/crates/ui-egui/src/dialogs/save_pdf.rs b/crates/ui-egui/src/dialogs/save_pdf.rs index b03cf32bcd..506ef94fce 100644 --- a/crates/ui-egui/src/dialogs/save_pdf.rs +++ b/crates/ui-egui/src/dialogs/save_pdf.rs @@ -38,7 +38,7 @@ const WRONG_DOCUMENT: &str = "Return to the original drawing to save the PDF or /// What the Save PDF dialog was opened for; the preset editor has none. pub(crate) struct SavePdfJob { /// The drawing this job reads and writes. - document: u64, + pub(crate) document: u64, /// The file the PDF goes to; none: the write asks. pub(crate) path: Option, /// The save command (`file.saveAs`, `file.saveCopy`) this PDF finishes; none: a plain PDF copy.