canvas-w11: net change of 2 commits

- canvas-w11: written by an agent
- canvas-w11: review fixes (review-1)
This commit is contained in:
Dylan M. Taylor committed 2026-11-27 14:51:31 +00:00
1 parent f7fd091b91
commit 93c19a9bea
3 files changed
+449 -643

No files matched your search

+3 -2
View File
@@ -1009,9 +1009,10 @@ pub fn segment_start_of(sh: &Shape, path: usize, index: usize) -> Option<usize>
vs.iter().position(|v| Some(*v) == j.checked_sub(1))
}
/// Adding, deleting, opening or closing renumbers the points of `path`: a point type remembered
/// for one of them would follow the wrong point.
/// Renumbering invalidates menu picks and any point type remembered for `path`.
fn forget_kinds(s: &mut Session, path: usize) {
s.tool.edit_segment = None;
s.tool.edit_vertex = None;
if s.tool.vertex_kind.as_ref().is_some_and(|k| k.1 == path) {
s.tool.vertex_kind = None;
}