Changeset 34098 in osm for applications/editors/josm/plugins/seachartedit/src/scedit
- Timestamp:
- 2018-03-25T03:40:41+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachartedit/src/scedit/SCeditAction.java
r33920 r34098 168 168 @Override 169 169 public void activeOrEditLayerChanged(ActiveLayerChangeEvent e) { 170 if (e.getPrevious EditLayer() != null) {171 e.getPrevious EditLayer().data.removeDataSetListener(dataSetListener);170 if (e.getPreviousDataLayer() != null) { 171 e.getPreviousDataLayer().getDataSet().removeDataSetListener(dataSetListener); 172 172 } 173 173 OsmDataLayer newLayer = getLayerManager().getEditLayer(); 174 174 if (newLayer != null) { 175 newLayer. data.addDataSetListener(dataSetListener);176 data = newLayer. data;175 newLayer.getDataSet().addDataSetListener(dataSetListener); 176 data = newLayer.getDataSet(); 177 177 makeMap(); 178 178 } else {
Note:
See TracChangeset
for help on using the changeset viewer.