Changeset 28873 in osm for applications/editors
- Timestamp:
- 2012-10-28T21:04:35+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/simplifyarea/src/sk/zdila/josm/plugin/simplify/SimplifyAreaAction.java
r28353 r28873 190 190 191 191 final Collection<Command> avgCommands = averageNearbyNodes(ways, nodesReallyToRemove); 192 if (avgCommands != null ) {192 if (avgCommands != null && !avgCommands.isEmpty()) { 193 193 allCommands.add(new SequenceCommand(tr("average nearby nodes"), avgCommands)); 194 194 } … … 301 301 302 302 newWay.setNodes(nodes); 303 commands.add(new ChangeCommand(way, newWay)); 303 if (!way.equals(newWay)) { 304 commands.add(new ChangeCommand(way, newWay)); 305 } 304 306 } 305 307 }
Note:
See TracChangeset
for help on using the changeset viewer.