Changeset 17445 in josm for trunk/src/org


Ignore:
Timestamp:
2021-01-06T14:58:44+01:00 (3 years ago)
Author:
GerdP
Message:

see #20272: Confusing handling of native scale layer and "zoom to download"

  • if imageary layer is removed which was enabled for "scale follows native resolution ..." set the native scale layer to null.

An alternative might be to check if another layer could be enabled, but that would requure more logic and a history.

File:
1 edited

Legend:

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

    r16668 r17445  
    398398        layer.removePropertyChangeListener(this);
    399399        invalidatedListener.removeFrom(layer);
     400        if(layer == getNativeScaleLayer())
     401            setNativeScaleLayer(null);
    400402        layer.destroy();
    401403        AudioPlayer.reset();
Note: See TracChangeset for help on using the changeset viewer.