Changeset 2625 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-12-13T09:30:46+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/event/DatasetEventManager.java
r2622 r2625 62 62 } 63 63 64 /* --------------------------------------------------------------------------- */ 65 /* interface LayerChangeListener */ 66 /* --------------------------------------------------------------------------- */ 64 67 public void activeLayerChange(Layer a, Layer b) { 65 68 if (a != null && a instanceof OsmDataLayer) { … … 69 72 ((OsmDataLayer)b).data.addDataSetListener(myListener); 70 73 } 71 processDatasetEvent(new DataChangedEvent(Main.main.getEditLayer().data)); 74 if (Main.main.getEditLayer() != null) { 75 processDatasetEvent(new DataChangedEvent(Main.main.getEditLayer().data)); 76 } 72 77 } 73 78 public void layerRemoved(Layer a) {/* irrelevant in this context */}
Note:
See TracChangeset
for help on using the changeset viewer.