Changeset 10440 in josm


Ignore:
Timestamp:
2016-06-20T21:28:55+02:00 (5 years ago)
Author:
wiktorn
Message:

Restore call to setNativeScaleLayer incidentally removed during LayerManager introduction.

Closes: #12998

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MapView.java

    r10432 r10440  
    6565import org.openstreetmap.josm.gui.layer.MapViewPaintable.PaintableInvalidationEvent;
    6666import org.openstreetmap.josm.gui.layer.MapViewPaintable.PaintableInvalidationListener;
     67import org.openstreetmap.josm.gui.layer.NativeScaleLayer;
    6768import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    6869import org.openstreetmap.josm.gui.layer.geoimage.GeoImageLayer;
     
    597598            playHeadMarker = PlayHeadMarker.create();
    598599        }
     600        if (layer instanceof NativeScaleLayer) {
     601            setNativeScaleLayer((NativeScaleLayer) layer);
     602         }
    599603
    600604        ProjectionBounds viewProjectionBounds = layer.getViewProjectionBounds();
Note: See TracChangeset for help on using the changeset viewer.