Changeset 4143 in josm for trunk/src/org
- Timestamp:
- 2011-06-19T00:18:54+02:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/ImageryMenu.java
r3737 r4143 68 68 JMenuItem singleOffset = new JMenuItem(offsetAction); 69 69 JMenuItem offsetMenuItem = singleOffset; 70 Map_Rectifier_WMSmenuAction rectaction = new Map_Rectifier_WMSmenuAction(); 71 JosmAction blankmenu = new JosmAction( 72 tr("Blank Layer"), "blankmenu", tr("Open a blank WMS layer to load data from a file"), null, false) { 73 @Override 74 public void actionPerformed(ActionEvent ev) { 75 if (!isEnabled()) return; 76 Main.main.addLayer(new WMSLayer()); 77 } 78 79 @Override 80 protected void updateEnabledState() { 81 setEnabled(Main.map != null && Main.map.mapView != null && !Main.map.mapView.getAllLayers().isEmpty()); 82 } 83 }; 70 84 int offsPos; 71 85 … … 83 97 } 84 98 addSeparator(); 85 add(new JMenuItem( new Map_Rectifier_WMSmenuAction()));99 add(new JMenuItem(rectaction)); 86 100 87 101 addSeparator(); … … 89 103 add(offsetMenuItem); 90 104 addSeparator(); 91 add(new JMenuItem(new JosmAction( 92 tr("Blank Layer"), "blankmenu", tr("Open a blank WMS layer to load data from a file"), null, false) { 93 @Override 94 public void actionPerformed(ActionEvent ev) { 95 if (!isEnabled()) return; 96 Main.main.addLayer(new WMSLayer()); 97 } 98 99 @Override 100 protected void updateEnabledState() { 101 setEnabled(Main.map != null && Main.map.mapView != null && !Main.map.mapView.getAllLayers().isEmpty()); 102 } 103 })); 105 add(new JMenuItem(blankmenu)); 104 106 } 105 107 -
trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java
r4129 r4143 462 462 463 463 LinkedList<WayPoint> visibleSegments = new LinkedList<WayPoint>(); 464 WayPoint last = null; 464 465 for (GpxTrack trk: data.tracks) { 465 466 for (GpxTrackSegment trkSeg: trk.getSegments()) { 466 WayPoint last = null;467 467 for(WayPoint pt : trkSeg.getWayPoints()) 468 468 {
Note:
See TracChangeset
for help on using the changeset viewer.