- Timestamp:
- 2017-12-01T23:20:05+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r13177 r13178 1221 1221 @Override 1222 1222 public void wayNodesChanged(WayNodesChangedEvent event) { 1223 DataSet ds = MainApplication.getLayerManager().getEditDataSet(); 1224 if (ds != null) { 1225 Collection<OsmPrimitive> sel = ds.getSelected(); 1226 if (sel.size() == 1 && sel.contains(event.getChangedWay())) { 1227 refreshDistText(sel); 1228 } 1223 Collection<OsmPrimitive> sel = event.getDataset().getSelected(); 1224 if (sel.size() == 1 && sel.contains(event.getChangedWay())) { 1225 refreshDistText(sel); 1229 1226 } 1230 1227 } … … 1232 1229 @Override 1233 1230 public void nodeMoved(NodeMovedEvent event) { 1234 DataSet ds = MainApplication.getLayerManager().getEditDataSet(); 1235 if (ds != null) { 1236 Collection<OsmPrimitive> sel = ds.getSelected(); 1237 if (sel.size() == 2 && sel.contains(event.getNode())) { 1238 refreshDistText(sel); 1239 } 1231 Collection<OsmPrimitive> sel = event.getDataset().getSelected(); 1232 if (sel.size() == 2 && sel.contains(event.getNode())) { 1233 refreshDistText(sel); 1240 1234 } 1241 1235 }
Note:
See TracChangeset
for help on using the changeset viewer.