Changeset 12355 in josm


Ignore:
Timestamp:
2017-06-09T11:38:55+02:00 (7 years ago)
Author:
michael2402
Message:

DownloadWmsAlongTrackAction: Do not require main window to be instanciated.

Allows running tests in a lighter environment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/DownloadWmsAlongTrackAction.java

    r11535 r12355  
    114114    @SuppressWarnings({ "rawtypes", "unchecked" })
    115115    protected AbstractTileSourceLayer<? extends AbstractTMSTileSource> askedLayer() {
    116         if (!Main.isDisplayingMapView()) {
    117             return null;
    118         }
    119116        List<AbstractTileSourceLayer> targetLayers = Main.getLayerManager().getLayersOfType(AbstractTileSourceLayer.class);
    120117        if (targetLayers.isEmpty()) {
Note: See TracChangeset for help on using the changeset viewer.