Changeset 32491 in osm for applications/editors/josm/plugins/infomode/src
- Timestamp:
- 2016-07-01T09:52:33+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode/InfoMode.java
r30737 r32491 121 121 @Override 122 122 public void paint(Graphics2D g, MapView mv, Bounds bbox) { 123 if (pos ==null) return;124 Layer curL= Main.main.getActiveLayer();125 if (curL instanceof GpxLayer) showLayerInfo(g, curL,mv); else {126 for (Layer l :mv.getAllLayers()) {123 if (pos == null) return; 124 Layer curL= mv.getLayerManager().getActiveLayer(); 125 if (curL instanceof GpxLayer) showLayerInfo(g, curL, mv); else { 126 for (Layer l : mv.getLayerManager().getLayers()) { 127 127 if (l instanceof GpxLayer) { 128 if (showLayerInfo(g, l,mv)) return;128 if (showLayerInfo(g, l, mv)) return; 129 129 } 130 130 } … … 220 220 221 221 private synchronized void filterTracks() { 222 Layer l = Main.main.getActiveLayer();222 Layer l = getLayerManager().getActiveLayer(); 223 223 224 224 if (l instanceof GpxLayer && pos!=null) { … … 235 235 } 236 236 gpxL.data.tracks.removeAll(toRemove); 237 238 239 237 } 240 238 }
Note:
See TracChangeset
for help on using the changeset viewer.