Changeset 11243 in josm for trunk/src/org
- Timestamp:
- 2016-11-12T20:11:06+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/Command.java
r11240 r11243 340 340 @Override 341 341 public int hashCode() { 342 return Objects.hash(cloneMap, layer );342 return Objects.hash(cloneMap, layer, data); 343 343 } 344 344 -
trunk/src/org/openstreetmap/josm/tools/Geometry.java
r10817 r11243 24 24 import org.openstreetmap.josm.data.coor.LatLon; 25 25 import org.openstreetmap.josm.data.osm.BBox; 26 import org.openstreetmap.josm.data.osm.DataSet; 26 27 import org.openstreetmap.josm.data.osm.MultipolygonBuilder; 27 28 import org.openstreetmap.josm.data.osm.MultipolygonBuilder.JoinedPolygon; … … 35 36 import org.openstreetmap.josm.data.projection.Projection; 36 37 import org.openstreetmap.josm.data.projection.Projections; 38 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 37 39 38 40 /** … … 84 86 changedWays[pos] = false; 85 87 } 88 89 OsmDataLayer layer = Main.getLayerManager().getEditLayer(); 90 DataSet dataset = ways.iterator().next().getDataSet(); 86 91 87 92 //iterate over all way pairs and introduce the intersections … … 189 194 190 195 if (intNode == newNode) { 191 cmds.add( new AddCommand(intNode));196 cmds.add(layer != null ? new AddCommand(layer, intNode) : new AddCommand(dataset, intNode)); 192 197 } 193 198 }
Note:
See TracChangeset
for help on using the changeset viewer.