Changeset 11109 in josm for trunk/src/org
- Timestamp:
- 2016-10-09T04:03:32+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java
r11108 r11109 161 161 // Among existing nodes, try to keep the oldest used one 162 162 if (!n.getReferrers().isEmpty()) { 163 if (targetNode == null) { 164 targetNode = n; 165 } else if (n.getId() < targetNode.getId()) { 163 if (targetNode == null || n.getId() < targetNode.getId()) { 166 164 targetNode = n; 167 165 } 168 } else if (oldestNode == null) { 169 oldestNode = n; 170 } else if (n.getId() < oldestNode.getId()) { 166 } else if (oldestNode == null || n.getId() < oldestNode.getId()) { 171 167 oldestNode = n; 172 168 } … … 200 196 if (!nodesToDelete.contains(n) && !n.equals(targetNode)) { 201 197 newNodes.add(n); 202 } else if (newNodes.isEmpty()) { 203 newNodes.add(targetNode); 204 } else if (!newNodes.get(newNodes.size()-1).equals(targetNode)) { 198 } else if (newNodes.isEmpty() || !newNodes.get(newNodes.size()-1).equals(targetNode)) { 205 199 // make sure we collapse a sequence of deleted nodes 206 200 // to exactly one occurrence of the merged target node -
trunk/src/org/openstreetmap/josm/actions/SessionSaveAsAction.java
r10420 r11109 131 131 boolean zip; 132 132 FileFilter ff = fc.getFileFilter(); 133 if (zipRequired) { 134 zip = true; 135 } else if (joz.equals(ff)) { 133 if (zipRequired || joz.equals(ff)) { 136 134 zip = true; 137 135 } else if (jos.equals(ff)) { -
trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java
r10662 r11109 101 101 alertSelectAtLeastOneWay(); 102 102 return; 103 } else if (!confirmWayWithNodesOutsideBoundingBox(ways)) { 104 return; 105 } else if (ways.size() > 10 && !confirmSimplifyManyWays(ways.size())) { 103 } else if (!confirmWayWithNodesOutsideBoundingBox(ways) || (ways.size() > 10 && !confirmSimplifyManyWays(ways.size()))) { 106 104 return; 107 105 } -
trunk/src/org/openstreetmap/josm/actions/UploadSelectionAction.java
r10601 r11109 79 79 Set<OsmPrimitive> ret = new HashSet<>(); 80 80 for (OsmPrimitive p: primitives) { 81 if (p.isNewOrUndeleted()) { 82 ret.add(p); 83 } else if (p.isModified() && !p.isIncomplete()) { 81 if (p.isNewOrUndeleted() || (p.isModified() && !p.isIncomplete())) { 84 82 ret.add(p); 85 83 }
Note:
See TracChangeset
for help on using the changeset viewer.