Changeset 10401 in josm


Ignore:
Timestamp:
2016-06-16T15:57:28+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #12976 - MapView is not refreshed when the active layer is hidden/shown (patch by michael2402) - gsoc-core

File:
1 edited

Legend:

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

    r10395 r10401  
    490490        this.layerManager = layerManager;
    491491        initialViewport = viewportData;
    492         layerManager.addLayerChangeListener(this);
     492        layerManager.addLayerChangeListener(this, true);
    493493        layerManager.addActiveLayerChangeListener(this);
    494494        Main.pref.addPreferenceChangeListener(this);
     
    11881188     */
    11891189    public void destroy() {
    1190         layerManager.removeLayerChangeListener(this);
     1190        layerManager.removeLayerChangeListener(this, true);
    11911191        layerManager.removeActiveLayerChangeListener(this);
    11921192        Main.pref.removePreferenceChangeListener(this);
Note: See TracChangeset for help on using the changeset viewer.