Changeset 118 in josm
- Timestamp:
- 2006-07-20T17:30:46+02:00 (19 years ago)
- Location:
- src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/actions/mapmode/SelectionAction.java
r105 r118 202 202 private Node addNearest(Collection<OsmPrimitive> path, Node start, Node end) { 203 203 Collection<Segment> c = reverseSegmentMap.get(start); 204 //if (c == null)205 //return null; // start may be a waypoint without segments204 if (c == null) 205 return null; // start may be a waypoint without segments 206 206 double min = Double.MAX_VALUE; 207 207 Node next = null; -
src/org/openstreetmap/josm/data/Preferences.java
r117 r118 143 143 public final void upgrade(int oldVersion) { 144 144 if (oldVersion > 117) return; 145 properties.put("color.scale", ColorHelper.color2html(Color.white)); 145 if (!properties.containsKey("color.scale")) 146 properties.put("color.scale", ColorHelper.color2html(Color.white)); 146 147 } 147 148 } -
src/org/openstreetmap/josm/gui/PreferenceDialog.java
r117 r118 88 88 sb.append(";"+annotationSources.getModel().getElementAt(i)); 89 89 Main.pref.put("annotation.sources", sb.toString().substring(1)); 90 } 90 } else 91 Main.pref.put("annotation.sources", null); 91 92 92 93 for (int i = 0; i < colors.getRowCount(); ++i) { -
src/org/openstreetmap/josm/io/RawGpsReader.java
r110 r118 32 32 public Collection<Collection<GpsPoint>> data = new LinkedList<Collection<GpsPoint>>(); 33 33 private LatLon currentLatLon; 34 private String currentTime = null;34 private String currentTime = ""; 35 35 private Stack<String> tags = new Stack<String>(); 36 36 … … 49 49 throw new SAXException(e); 50 50 } 51 currentTime = ""; 51 52 } 52 53 tags.push(qName); … … 69 70 if (qName.equals("wpt") || qName.equals("trkpt")) { 70 71 current.add(new GpsPoint(currentLatLon, currentTime)); 71 } else if (qName.equals("trkseg") || qName.equals("trk") || qName.equals("gpx")) 72 currentTime = ""; 73 } else if (qName.equals("trkseg") || qName.equals("trk") || qName.equals("gpx")) { 72 74 newTrack(); 73 74 if (!qName.equals("time"))75 75 currentTime = ""; 76 } 76 77 tags.pop(); 77 78 }
Note:
See TracChangeset
for help on using the changeset viewer.