Changeset 28873 in osm for applications/editors


Ignore:
Timestamp:
2012-10-28T21:04:35+01:00 (12 years ago)
Author:
mzdila
Message:

fixing #8086

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/simplifyarea/src/sk/zdila/josm/plugin/simplify/SimplifyAreaAction.java

    r28353 r28873  
    190190
    191191        final Collection<Command> avgCommands = averageNearbyNodes(ways, nodesReallyToRemove);
    192         if (avgCommands != null) {
     192        if (avgCommands != null && !avgCommands.isEmpty()) {
    193193            allCommands.add(new SequenceCommand(tr("average nearby nodes"), avgCommands));
    194194        }
     
    301301
    302302                newWay.setNodes(nodes);
    303                 commands.add(new ChangeCommand(way, newWay));
     303                if (!way.equals(newWay)) {
     304                    commands.add(new ChangeCommand(way, newWay));
     305                }
    304306            }
    305307        }
Note: See TracChangeset for help on using the changeset viewer.