Ignore:
Timestamp:
2018-08-14T21:01:27+02:00 (4 months ago)
Author:
Don-vip
Message:

fix #16615 - make sure dataset can be garbage collected after removal (regression from r13926)

File:
1 edited

Legend:

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

    r14153 r14156  
    251251        activeLayer = layer;
    252252        if (activeLayer instanceof AbstractOsmDataLayer) {
    253             dataLayer = (AbstractOsmDataLayer) layer;
     253            dataLayer = (AbstractOsmDataLayer) activeLayer;
     254        } else if (forceEditLayerUpdate) {
     255            dataLayer = null;
    254256        }
    255257        if (activeLayer instanceof OsmDataLayer) {
Note: See TracChangeset for help on using the changeset viewer.