From 3f79b37b99bc21f9b54dfe521dd3b055341f827c Mon Sep 17 00:00:00 2001 From: giswqs Date: Tue, 10 Nov 2026 20:06:24 -0500 Subject: [PATCH] fix(layout): pass legend_sizes_mm its excluded layers and labels #1725 added a call to legend_sizes_mm with an empty slice for its last argument while #1739 changed that argument to a pair of the excluded layers and the labels, so main no longer builds. The call measures the legend at another scale, so it passes the same empty pair as the measurement at the asked scale above it. --- crates/engine/src/cmd/layout.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/engine/src/cmd/layout.rs b/crates/engine/src/cmd/layout.rs index 41d60948c4..1e44bbabb0 100644 --- a/crates/engine/src/cmd/layout.rs +++ b/crates/engine/src/cmd/layout.rs @@ -1989,7 +1989,8 @@ fn publication(s: &mut Session, p: &Value) -> CmdResult { } else { // A legend that can't be measured there (a source that can't be read // through) leaves that scale untried too, which is said. - let measured = crate::render::layout::legend_sizes_mm(s.map_mut(), render_scale, false, false, &[]); + let measured = + crate::render::layout::legend_sizes_mm(s.map_mut(), render_scale, false, false, (&[], &Default::default())); if measured.is_none() { unknown_at.get_or_insert(tried); }