Ignore:
Timestamp:
2017-05-11T10:57:14+02:00 (7 years ago)
Author:
michael2402
Message:

Fix weak projection listener of NavigatableComponent being lost.

File:
1 edited

Legend:

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

    r12011 r12119  
    10781078        if ((newValue == null ^ oldValue == null)
    10791079                || (newValue != null && oldValue != null && !Objects.equals(newValue.toCode(), oldValue.toCode()))) {
    1080             if (Main.map != null) {
    1081                 // This needs to be called first
    1082                 Main.map.mapView.fixProjection();
    1083             }
    10841080            synchronized (Main.class) {
    10851081                Iterator<WeakReference<ProjectionChangeListener>> it = listeners.iterator();
     
    11031099    /**
    11041100     * Register a projection change listener.
     1101     * The listener is registered to be weak, so keep a reference of it if you want it to be preserved.
    11051102     *
    11061103     * @param listener the listener. Ignored if <code>null</code>.
Note: See TracChangeset for help on using the changeset viewer.