Changeset 3449 in josm for trunk/src/org
- Timestamp:
- 2010-08-20T13:07:55+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r3445 r3449 19 19 import java.util.List; 20 20 import java.util.Map; 21 import java.util.Map.Entry; 21 22 import java.util.Set; 22 23 import java.util.TreeMap; 23 24 import java.util.TreeSet; 24 import java.util.Map.Entry;25 25 26 26 import javax.swing.Box; … … 209 209 } 210 210 211 if (checkForTagConflicts(ways.getFirst(), ways.getLast())) { 212 //do nothing. //FIXME: abort? 213 } 211 if (checkForTagConflicts(ways.getFirst(), ways.getLast())) 212 //there was conflicts and user canceled abort the action. 213 return; 214 214 215 215 216 JoinAreasResult result = joinAreas(ways.getFirst(), ways.getLast()); … … 306 307 } 307 308 309 result.hasChanges = true; 308 310 result.mergeSuccessful = true; 309 311 result.outerWay = outerWay; … … 742 744 if (bestWay == null) 743 745 throw new RuntimeException(); 744 else if (outerWays.contains(bestWay)) 746 else if (outerWays.contains(bestWay)) { 745 747 break; //full circle reached, terminate. 746 else { 748 } else { 747 749 //add to outer ways, repeat. 748 750 outerWays.add(bestWay);
Note:
See TracChangeset
for help on using the changeset viewer.