Changeset 32329 in osm for applications/editors/josm/plugins/mapdust/src/org/openstreetmap
- Timestamp:
- 2016-06-19T16:08:56+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapdust/src/org/openstreetmap/josm/plugins/mapdust/MapdustPlugin.java
r30737 r32329 363 363 if (event.getButton() == MouseEvent.BUTTON1) { 364 364 if (event.getClickCount() == 2 && !event.isConsumed()) { 365 if (Main. map.mapView.getActiveLayer() == getMapdustLayer()) {365 if (Main.getLayerManager().getActiveLayer() == getMapdustLayer()) { 366 366 /* show add bug dialog */ 367 367 MapdustBug bug = mapdustGUI.getSelectedBug(); … … 620 620 */ 621 621 private boolean containsMapdustLayer() { 622 boolean contains = false; 623 List<Layer> all = Main.map.mapView.getAllLayersAsList(); 624 if (mapdustLayer != null && all.contains(mapdustLayer)) { 625 contains = true; 626 } 627 return contains; 622 return mapdustLayer != null && Main.getLayerManager().containsLayer(mapdustLayer); 628 623 } 629 624
Note:
See TracChangeset
for help on using the changeset viewer.