Changeset 7820 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2014-12-18T08:28:03+01:00 (5 years ago)
Author:
bastiK
Message:

fixed #10857 - notes popup can not be opened or closed via the mapview if there is only the notes layer (patch by ToeBee)

File:
1 edited

Legend:

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

    r7732 r7820  
    5050        super(name);
    5151        noteData = new NoteData(notes);
    52         init();
    5352    }
    5453
     
    5756        super(tr("Notes"));
    5857        noteData = new NoteData();
    59         init();
    60     }
    61 
    62     private void init() {
    63         if (Main.map != null && Main.map.mapView != null) {
    64             Main.map.mapView.addMouseListener(this);
    65         }
     58    }
     59
     60    @Override
     61    public void hookUpMapView() {
     62        Main.map.mapView.addMouseListener(this);
    6663    }
    6764
Note: See TracChangeset for help on using the changeset viewer.