Changes between Initial Version and Version 1 of Ticket #20272


Ignore:
Timestamp:
2020-12-21T06:56:55+01:00 (5 years ago)
Author:
GerdP
Comment:

The memory leak should be fixed with this small patch:

  • src/org/openstreetmap/josm/gui/MapView.java

     
    397397        ProjectionRegistry.removeProjectionChangeListener(layer);
    398398        layer.removePropertyChangeListener(this);
    399399        invalidatedListener.removeFrom(layer);
     400        if(layer == getNativeScaleLayer())
     401            setNativeScaleLayer(null);
    400402        layer.destroy();
    401403        AudioPlayer.reset();

We changed the behaviour of the zoom keys so often that I am no longer sure what exactly should happen.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20272

    • Property Cc wiktorn simon04 added
  • Ticket #20272 – Description

    initial v1  
    554. Add Bing layer (or another one with a "native scale"), make sure that the "scale follows native resolution ..." checkbox is enabled, note that the dashed area disappeared because JOSM zoomed in a little bit.
    665. Remove Bing layer, note that this doesn't change the map view
    7 6. Press 5 again to zoom to download area. Note that now a large dashed area is visible, means, this zoom simply doesn't work anymore.
     76. Press 5 again to zoom to download area. Note that now a large dashed area is visible, means, this zoom simply doesn't work anymore. Edit: This is also the case when the layer is not removed.
    88
    99==== What is the expected result?