Changeset 32823 in osm
- Timestamp:
- 2016-08-16T23:43:26+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/PTAssistantPlugin.java
r32585 r32823 11 11 import org.openstreetmap.josm.plugins.PluginInformation; 12 12 import org.openstreetmap.josm.plugins.pt_assistant.actions.AddStopPositionAction; 13 import org.openstreetmap.josm.plugins.pt_assistant.actions.RepeatLastFixAction; 13 14 import org.openstreetmap.josm.plugins.pt_assistant.validation.PTAssistantValidatorTest; 14 15 … … 22 23 23 24 private JMenuItem addStopPositionMenu; 25 private JMenuItem repeatLastFixMenu; 24 26 25 27 /** … … 37 39 AddStopPositionAction addStopPositionAction = new AddStopPositionAction(); 38 40 addStopPositionMenu = MainMenu.add(Main.main.menu.toolsMenu, addStopPositionAction, false); 39 41 RepeatLastFixAction repeatLastFixAction = new RepeatLastFixAction(); 42 repeatLastFixMenu = MainMenu.add(Main.main.menu.toolsMenu, repeatLastFixAction, false); 43 40 44 } 41 45 -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/data/PTRouteDataManager.java
r32819 r32823 45 45 46 46 PTStop prev = null; // stores the last created PTStop 47 47 48 48 for (RelationMember member : this.relation.getMembers()) { 49 49 … … 61 61 // Squared distance of 0.000004 corresponds to 62 62 // around 100 m 63 if (this.calculateDistanceSq(member, prev) < 0.000004) { 64 63 if (this.calculateDistanceSq(member, prev) < 0.000001) { 65 64 stopExists = true; 66 65 } 66 67 67 } else { 68 68 … … 99 99 100 100 } else { 101 101 102 this.failedMembers.add(member); 103 102 104 } 103 105
Note:
See TracChangeset
for help on using the changeset viewer.