Changeset 10452 in josm for trunk/test


Ignore:
Timestamp:
2016-06-21T23:41:42+02:00 (4 years ago)
Author:
Don-vip
Message:

fix #13019 - Make commands trigger an implicit layer redraw (patch by michael2402) - gsoc-core

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/actions/mapmode/DrawActionTest.java

    r10436 r10452  
    5353        DataSet dataSet = new DataSet();
    5454        OsmDataLayer layer = new OsmDataLayer(dataSet, OsmDataLayer.createNewName(), null);
     55        Main.getLayerManager().addLayer(layer);
    5556
    5657        Field mapView = MapFrame.class.getDeclaredField("mapView");
     
    6869        dataSet.addPrimitive(w);
    6970
    70         Main.getLayerManager().addLayer(layer);
    7171        try {
    7272            assertTrue(Main.map.selectDrawTool(false));
Note: See TracChangeset for help on using the changeset viewer.