diff --git a/crates/render/src/inspect/model.rs b/crates/render/src/inspect/model.rs index 2ed99ced5e..e79c4cf0b9 100644 --- a/crates/render/src/inspect/model.rs +++ b/crates/render/src/inspect/model.rs @@ -616,11 +616,8 @@ impl<'a> ReviewStates<'a> { let mut reaches: HashMap<(usize, usize), Option<(usize, usize)>> = HashMap::new(); let mut by_target: HashMap<(usize, usize), Vec<&Annotation>> = HashMap::new(); // A state set on a group subordinate is the group's, its primary's (ISO 32000-2 ยง12.5.6.2). - let primary_of: HashMap<(usize, usize), (usize, usize)> = all - .iter() - .zip(group_primaries(all)) - .filter_map(|(a, p)| all.get(p?).map(|p| ((a.page, a.index), (p.page, p.index)))) - .collect(); + let primary_of: HashMap<(usize, usize), (usize, usize)> = + all.iter().zip(group_primaries(all)).filter_map(|(a, p)| all.get(p?).map(|p| ((a.page, a.index), (p.page, p.index)))).collect(); for r in all.iter().filter(|a| a.state.is_some()) { let (mut path, mut seen, mut up) = (vec![(r.page, r.index)], HashSet::from([(r.page, r.index)]), r.parent); let target = loop { @@ -823,6 +820,8 @@ mod review_state_tests { fill_sign: false, no_rotate: false, points: Vec::new(), + text_box: None, + popup: None, }) .collect(); link_replies(&mut all); diff --git a/crates/render/src/inspect/tests.rs b/crates/render/src/inspect/tests.rs index 9ef34ebe56..119136a2ce 100644 --- a/crates/render/src/inspect/tests.rs +++ b/crates/render/src/inspect/tests.rs @@ -2081,6 +2081,8 @@ mod group_tests { fill_sign: false, no_rotate: false, points: Vec::new(), + text_box: None, + popup: None, } } diff --git a/crates/ui-egui/src/tools/comments/tests.rs b/crates/ui-egui/src/tools/comments/tests.rs index d6a0bee369..6c3e4ea163 100644 --- a/crates/ui-egui/src/tools/comments/tests.rs +++ b/crates/ui-egui/src/tools/comments/tests.rs @@ -579,6 +579,8 @@ fn a_replace_text_group_makes_replace_text_defaults() { fill_sign: false, no_rotate: false, points: Vec::new(), + text_box: None, + popup: None, }; let all = vec![annot(0, "Caret", Some("Replace"), None), annot(1, "StrikeOut", Some("StrikeOutTextEdit"), Some((0, 0))), annot(2, "Caret", None, None)];