Changeset 32936 in osm
- Timestamp:
- 2016-09-07T23:19:08+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementDialog.java
r32732 r32936 177 177 Node lastNode = null; 178 178 // Don't mix up way and nodes computation (fix #6872). Priority given to ways 179 ways = new SubclassFilteredCollection<>(newSelection, OsmPrimitive.wayPredicate);179 ways = new SubclassFilteredCollection<>(newSelection, Way.class::isInstance); 180 180 if (ways.isEmpty()) { 181 nodes = new SubclassFilteredCollection<>(newSelection, OsmPrimitive.nodePredicate);181 nodes = new SubclassFilteredCollection<>(newSelection, Node.class::isInstance); 182 182 for (Node n : nodes) { 183 183 if (n.getCoor() != null) {
Note:
See TracChangeset
for help on using the changeset viewer.