mirror of https://codeberg.org/topola/topola.git
fix(geometry/edit): Remove `(None, None)` pairs when merging edits
This commit is contained in:
parent
6dc1ea601c
commit
3c9ce32ff2
|
|
@ -77,7 +77,11 @@ impl<
|
||||||
vac.insert((old.clone(), new.clone()));
|
vac.insert((old.clone(), new.clone()));
|
||||||
}
|
}
|
||||||
Entry::Occupied(mut occ) => {
|
Entry::Occupied(mut occ) => {
|
||||||
occ.get_mut().1 = new.clone();
|
if let ((None, ..), None) = (occ.get(), new) {
|
||||||
|
occ.remove();
|
||||||
|
} else {
|
||||||
|
occ.get_mut().1 = new.clone();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue