Changeset 6717 in josm for trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java
- Timestamp:
- 2014-01-17T21:33:44+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java
r6708 r6717 17 17 import java.text.DateFormat; 18 18 import java.util.ArrayList; 19 import java.util.Arrays; 19 20 import java.util.Collection; 20 21 import java.util.Date; … … 814 815 final private void ensureTrackVisibilityLength() { 815 816 final int l = data.tracks.size(); 816 if (l == trackVisibility.length)817 if (l == trackVisibility.length) 817 818 return; 818 final boolean[] back = trackVisibility.clone(); 819 final int m = Math.min(l, back.length); 820 trackVisibility = new boolean[l]; 821 System.arraycopy(back, 0, trackVisibility, 0, m); 822 for(int i=m; i < l; i++) { 819 final int m = Math.min(l, trackVisibility.length); 820 trackVisibility = Arrays.copyOf(trackVisibility, l); 821 for (int i = m; i < l; i++) { 823 822 trackVisibility[i] = true; 824 823 }
Note:
See TracChangeset
for help on using the changeset viewer.