Modify ↓
Opened 15 years ago
Closed 15 years ago
#4055 closed defect (fixed)
[Patch] OsmPrimitive.compareTo() returns treats all new primitives as equal
Reported by: | mjulius | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
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 (1)
Change History (3)
by , 15 years ago
Attachment: | OsmPrimitive.compareTo.patch added |
---|
comment:1 by , 15 years ago
Version: | → latest |
---|
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [2555]) fixed #4055 - patch my mjulius - fix object compare