Panic when a route contains a duplicate point #30

Closed
opened 2025-06-23 17:34:17 +00:00 by zyxw59 · 2 comments
zyxw59 commented 2025-06-23 17:34:17 +00:00 (Migrated from github.com)

the issue occurs in LineInfo::get_segment, when the line doesn't have any segments.

minimal reproduction:

a = (0,0);
b = a;
route test: a -- b;
the issue occurs in `LineInfo::get_segment`, when the line doesn't have any segments. minimal reproduction: ``` a = (0,0); b = a; route test: a -- b; ```
zyxw59 commented 2025-06-23 17:35:26 +00:00 (Migrated from github.com)

Note that this scenario would be a logic error on the user's end, but we should be returning a useful error message, not panicking.

Note that this scenario would be a logic error on the user's end, but we should be returning a useful error message, not panicking.
zyxw59 commented 2025-10-04 15:20:37 +00:00 (Migrated from github.com)

Resolved by #33

Resolved by #33
Sign in to join this conversation.
No description provided.