From b52d5fbdff20771f3ac5ec2560464a8bde23fa26 Mon Sep 17 00:00:00 2001 From: ffishman <20211677+ffishman@users.noreply.github.com> Date: Sat, 24 Oct 2026 19:09:52 -0300 Subject: [PATCH] io: put the CLASS group 91 doc comment back on its function plot_paper had been inserted between add_class_instance_counts and its doc comment (review on #2028). Co-Authored-By: Claude Opus 5.5 (1M context) --- crates/io/src/dxf_write.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/io/src/dxf_write.rs b/crates/io/src/dxf_write.rs index 43cca500d..0e4a6e916 100644 --- a/crates/io/src/dxf_write.rs +++ b/crates/io/src/dxf_write.rs @@ -2694,8 +2694,6 @@ fn tags_for(d: &Drawing, version: Version, target: Version) -> Vec { w.t } -/// Write DXF Reference group 91 on every CLASS record. Count records after `dxf_raw::finish` -/// restores foreign classes and objects so every class gets its actual instance count. /// Paper size (groups 44, 45) and plot rotation (group 73) for a LAYOUT object. Page setups /// keep a portrait size and a landscape flag. A media whose name makes it wider than tall, such /// as `ISO_full_bleed_A3_(420.00_x_297.00_MM)`, gets its size in that order and the rotation @@ -2723,6 +2721,8 @@ fn media_is_landscape(paper: &str) -> bool { matches!((num(sides.next()), num(sides.next())), (Some(w), Some(h)) if w > h) } +/// Write DXF Reference group 91 on every CLASS record. Count records after `dxf_raw::finish` +/// restores foreign classes and objects so every class gets its actual instance count. fn add_class_instance_counts(tags: &mut Vec) { let mut counts: HashMap = HashMap::new(); for t in tags.iter().filter(|t| t.code == 0) {