Changeset 17432 in josm for trunk/src/org/openstreetmap/josm/gui/draw/MapViewPath.java
- Timestamp:
- 2021-01-02T16:14:00+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/draw/MapViewPath.java
r12505 r17432 164 164 private void appendWay(Iterable<? extends ILatLon> nodes, boolean connect, boolean close) { 165 165 boolean useMoveTo = !connect; 166 ILatLon first = null;167 166 for (ILatLon n : nodes) { 168 167 if (useMoveTo) { … … 171 170 lineTo(n); 172 171 } 173 if (close && first == null) {174 first = n;175 }176 172 useMoveTo = false; 177 173 } 178 if ( first != null) {179 lineTo(first);174 if (close) { 175 closePath(); 180 176 } 181 177 }
Note:
See TracChangeset
for help on using the changeset viewer.