Ignore:
Timestamp:
2017-08-28T19:09:01+02:00 (2 years ago)
Author:
Don-vip
Message:

see #15182 - refactor MergeNodesAction to avoid unneeded GUI dependence in DuplicateNode test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java

    r12636 r12689  
    3434import org.openstreetmap.josm.data.validation.Test;
    3535import org.openstreetmap.josm.data.validation.TestError;
    36 import org.openstreetmap.josm.gui.MainApplication;
    3736import org.openstreetmap.josm.gui.progress.ProgressMonitor;
    3837import org.openstreetmap.josm.tools.MultiMap;
     
    334333
    335334            if (Command.checkOutlyingOrIncompleteOperation(nodes, Collections.singleton(target)) == Command.IS_OK)
    336                 return MergeNodesAction.mergeNodes(MainApplication.getLayerManager().getEditLayer(), nodes, target);
     335                return MergeNodesAction.mergeNodes(nodes, target);
    337336        }
    338337
Note: See TracChangeset for help on using the changeset viewer.