- Timestamp:
- 2019-06-02T21:35:31+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/ImageryMenu.java
r15054 r15154 152 152 private static boolean isPosInOneShapeIfAny(ImageryInfo info, LatLon pos) { 153 153 List<Shape> shapes = info.getBounds().getShapes(); 154 return shapes == null || shapes. stream().anyMatch(s -> s.contains(pos));154 return shapes == null || shapes.isEmpty() || shapes.stream().anyMatch(s -> s.contains(pos)); 155 155 } 156 156 … … 185 185 .collect(Collectors.toList()); 186 186 if (!inViewLayers.isEmpty()) { 187 addDynamicSeparator(); 187 if (inViewLayers.stream().anyMatch(i -> i.getImageryCategory() == ImageryCategory.PHOTO)) { 188 addDynamicSeparator(); 189 } 188 190 for (ImageryInfo i : inViewLayers) { 189 191 addDynamic(trackJosmAction(new AddImageryLayerAction(i)), i.getImageryCategory());
Note:
See TracChangeset
for help on using the changeset viewer.