Ticket #10857: 10857.patch
File 10857.patch, 921 bytes (added by , 10 years ago) |
---|
-
src/org/openstreetmap/josm/gui/layer/NoteLayer.java
49 49 public NoteLayer(List<Note> notes, String name) { 50 50 super(name); 51 51 noteData = new NoteData(notes); 52 init();53 52 } 54 53 55 54 /** Convenience constructor that creates a layer with an empty note list */ … … 56 55 public NoteLayer() { 57 56 super(tr("Notes")); 58 57 noteData = new NoteData(); 59 init();60 58 } 61 59 62 private void init() { 63 if (Main.map != null && Main.map.mapView != null) { 64 Main.map.mapView.addMouseListener(this); 65 } 60 @Override 61 public void hookUpMapView() { 62 Main.map.mapView.addMouseListener(this); 66 63 } 67 64 68 65 /**