Changeset 12315 in josm


Ignore:
Timestamp:
2017-06-04T20:53:07+02:00 (2 years ago)
Author:
michael2402
Message:

MoveAction: Ignore move if there is no edit data set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/MoveAction.java

    r12063 r12315  
    100100    @Override
    101101    public void actionPerformed(ActionEvent event) {
     102        DataSet ds = getLayerManager().getEditDataSet();
    102103
    103         if (!Main.isDisplayingMapView())
     104        if (!Main.isDisplayingMapView() || ds == null)
    104105            return;
    105106
     
    129130        }
    130131
    131         DataSet ds = getLayerManager().getEditDataSet();
    132132        Collection<OsmPrimitive> selection = ds.getSelected();
    133133        Collection<Node> affectedNodes = AllNodesVisitor.getAllNodes(selection);
Note: See TracChangeset for help on using the changeset viewer.