Ticket #17040: 17040-dataset.patch

File 17040-dataset.patch, 511 bytes (added by GerdP, 7 years ago)

@Don-vip: Why isn't Dataset.clear() called as in this patch?

  • src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

     
    10531053        super.destroy();
    10541054        data.removeSelectionListener(this);
    10551055        data.removeHighlightUpdateListener(this);
     1056        if (!data.isLocked())
     1057            data.clear();
    10561058    }
    10571059
    10581060    @Override