Changeset 17056 in josm for trunk


Ignore:
Timestamp:
2020-09-24T09:57:53+02:00 (4 years ago)
Author:
GerdP
Message:

fix #19830: Bottom toolbar way length indicator doesn't update after align action

  • Remove checks regarding the number of selected elemments
  • Also react on DataChangedEvent
File:
1 edited

Legend:

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

    r16986 r17056  
    12251225    @Override
    12261226    public void wayNodesChanged(WayNodesChangedEvent event) {
    1227         Collection<OsmPrimitive> sel = event.getDataset().getSelected();
    1228         if (sel.size() == 1 && sel.contains(event.getChangedWay())) {
    1229             refreshDistText(sel);
    1230         }
     1227        refreshDistText(event.getDataset().getSelected());
    12311228    }
    12321229
    12331230    @Override
    12341231    public void nodeMoved(NodeMovedEvent event) {
    1235         Collection<OsmPrimitive> sel = event.getDataset().getSelected();
    1236         if (sel.size() == 2 && sel.contains(event.getNode())) {
    1237             refreshDistText(sel);
    1238         }
     1232        refreshDistText(event.getDataset().getSelected());
    12391233    }
    12401234
     
    12661260    @Override
    12671261    public void dataChanged(DataChangedEvent event) {
    1268         // Do nothing
     1262        refreshDistText(event.getDataset().getSelected());
    12691263    }
    12701264}
Note: See TracChangeset for help on using the changeset viewer.