Fix invalid segment crash when disolving point loop (#1959)

* Fix invalid segment crash

* Further improve robustness
This commit is contained in:
James Lindsay
2024-09-05 11:45:14 -07:00
committed by GitHub
parent bf5019db7b
commit 06e11b6f46
4 changed files with 64 additions and 11 deletions
@@ -306,7 +306,9 @@ impl PenToolData {
},
});
}
if !close_subpath {
if close_subpath {
responses.add(DocumentMessage::EndTransaction);
} else {
self.add_point(LastPoint {
id: end,
pos: next_point,