From 0f99b7700498fec187b9c49c642afedb70ab00e8 Mon Sep 17 00:00:00 2001 From: Hakan Seven Date: Thu, 24 Sep 2026 16:38:21 +0300 Subject: [PATCH] test(plot): pin the paper-scale tests to millimetre drawing units New drawings now default to metre insertion units, and the plot dialog reads a ratio against the drawing's units, so these tests (written for millimetres) saw 1:100 as 10 mm per unit. The metre case keeps its own test. Co-Authored-By: Claude Opus 5.5 --- src/app/update/file.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/update/file.rs b/src/app/update/file.rs index 0fcc39864..f730a8e6a 100644 --- a/src/app/update/file.rs +++ b/src/app/update/file.rs @@ -5645,6 +5645,9 @@ mod plot_paper_tests { app.automation_op(r#"{"op":"new"}"#); let _ = app.update(Message::LayoutSwitch("Layout1".into())); let i = app.active_tab; + // Millimetre drawing units, so a ratio plots as written; the metre + // case has its own test. + app.tabs[i].scene.document.header.insertion_units = 4; let mut ps = app.tabs[i] .scene .plot_settings_for("Layout1")