Changeset 9801 in josm for trunk/test/unit


Ignore:
Timestamp:
2016-02-14T21:48:00+01:00 (9 years ago)
Author:
stoecker
Message:

fix SessionReaderTest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/JOSMFixture.java

    r8540 r9801  
    1010import org.openstreetmap.josm.data.projection.Projections;
    1111import org.openstreetmap.josm.gui.MainApplication;
     12import org.openstreetmap.josm.gui.layer.Layer;
    1213import org.openstreetmap.josm.gui.preferences.ToolbarPreferences;
    1314import org.openstreetmap.josm.io.OsmApi;
     
    112113            if (Main.map == null) {
    113114                Main.main.createMapFrame(null, null);
     115            } else {
     116                for (Layer l: Main.map.mapView.getAllLayers()) {
     117                    Main.map.mapView.removeLayer(l);
     118                }
    114119            }
    115120        }
Note: See TracChangeset for help on using the changeset viewer.