Changeset 7050 in josm
- Timestamp:
- 2014-05-02T03:01:08+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
r7024 r7050 83 83 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletingTextField; 84 84 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionList; 85 import org.openstreetmap.josm.tools.CheckParameterUtil; 85 86 import org.openstreetmap.josm.tools.ImageProvider; 86 87 import org.openstreetmap.josm.tools.Shortcut; … … 736 737 } 737 738 738 public static Command addPrimitivesToRelation(final Relation orig, Collection<? extends OsmPrimitive> primitivesToAdd) { 739 public static Command addPrimitivesToRelation(final Relation orig, Collection<? extends OsmPrimitive> primitivesToAdd) throws IllegalArgumentException { 740 CheckParameterUtil.ensureParameterNotNull(orig, "orig"); 739 741 try { 740 742 final Collection<TaggingPreset> presets = TaggingPreset.getMatchingPresets(EnumSet.of(TaggingPresetType.RELATION), orig.getKeys(), false); … … 742 744 boolean modified = false; 743 745 for (OsmPrimitive p : primitivesToAdd) { 744 if (p instanceof Relation && orig != null && orig.equals(p)) {746 if (p instanceof Relation && orig.equals(p)) { 745 747 warnOfCircularReferences(p); 746 748 continue; -
trunk/src/org/openstreetmap/josm/io/OsmServerBackreferenceReader.java
r7033 r7050 264 264 visitor.merge(); 265 265 ret = visitor.getTargetDataSet(); 266 readIncompletePrimitives(ret, progressMonitor.createSubTaskMonitor(1, false));267 266 if (ret != null) { 267 readIncompletePrimitives(ret, progressMonitor.createSubTaskMonitor(1, false)); 268 268 ret.deleteInvisible(); 269 269 }
Note:
See TracChangeset
for help on using the changeset viewer.