- Timestamp:
- 2008-09-21T21:45:01+02:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 7 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ReverseWayAction.java
r764 r1001 18 18 import org.openstreetmap.josm.command.SequenceCommand; 19 19 import org.openstreetmap.josm.corrector.ReverseWayTagCorrector; 20 import org.openstreetmap.josm.corrector.UserCancelException; 20 21 import org.openstreetmap.josm.data.osm.DataSet; 21 22 import org.openstreetmap.josm.data.osm.Relation; … … 65 66 Collections.reverse(wnew.nodes); 66 67 if (Main.pref.getBoolean("tag-correction.reverse-way", true)) { 67 final Collection<ChangePropertyCommand> changePropertyCommands = reverseWayTagCorrector 68 .execute(wnew); 69 propertiesUpdated = propertiesUpdated 70 || (changePropertyCommands != null && !changePropertyCommands 71 .isEmpty()); 72 c.addAll(changePropertyCommands); 68 try 69 { 70 final Collection<Command> changePropertyCommands = reverseWayTagCorrector.execute(wnew); 71 propertiesUpdated = propertiesUpdated 72 || (changePropertyCommands != null && !changePropertyCommands.isEmpty()); 73 c.addAll(changePropertyCommands); 74 } 75 catch(UserCancelException ex) 76 { 77 return; 78 } 73 79 } 74 80 c.add(new ChangeCommand(w, wnew));
Note:
See TracChangeset
for help on using the changeset viewer.