Modify ↓
Ticket #4055 (closed defect: fixed)
[Patch] OsmPrimitive.compareTo() returns treats all new primitives as equal
| Reported by: | mjulius | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Component: | Core |
| Version: | latest | Keywords: | |
| Cc: |
Description
Because all the compareTo() methods use getId() to compare primitives and getId() returns 0 for all new primitives (with ID < 0) all new primitives compare equal.
With the attached patch compareTo() uses getUniqueId().
This for example affects the count of primitives moved when JOSM determines whether to display a warning about moving many primitives. The warning only pops up when the amount of old nodes exceed the limit.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


