Ticket #5609: NavigatableComponent.java.patch
File NavigatableComponent.java.patch, 1.1 KB (added by , 14 years ago) |
---|
-
src/org/openstreetmap/josm/gui/NavigatableComponent.java
592 592 // find the nearest selected node 593 593 if (ntsel == null && nd.isSelected()) { 594 594 ntsel = nd; 595 use_selected |= (distSq == minDistSq); // for unglue nodes feature 595 596 } 596 597 // find the nearest newest node that is within about the same 597 598 // distance as the true nearest node … … 603 604 604 605 // take nearest selected, nearest new or true nearest node to p, in that order 605 606 n = (ntsel != null && use_selected) ? ntsel 606 : ( (ntnew != null) ? ntnew607 : nlists.values().iterator().next().get(0) );607 : (ntnew != null) ? ntnew 608 : nlists.values().iterator().next().get(0); 608 609 } 609 610 610 611 return n;