Changeset 13178 in josm


Ignore:
Timestamp:
2017-12-01T23:20:05+01:00 (10 days ago)
Author:
Don-vip
Message:

see #15605 - code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MapStatus.java

    r13177 r13178  
    12211221    @Override
    12221222    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);
    12291226        }
    12301227    }
     
    12321229    @Override
    12331230    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);
    12401234        }
    12411235    }
Note: See TracChangeset for help on using the changeset viewer.