Changeset 35978 in osm for applications/editors/josm/plugins/CommandLine
- Timestamp:
- 2022-06-15T20:10:48+02:00 (3 years ago)
- Location:
- applications/editors/josm/plugins/CommandLine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/CommandLine/build.xml
r35937 r35978 4 4 <property name="commit.message" value="JOSM/CommandLine: fix exception after JOSM update"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="1 7749"/>6 <property name="plugin.main.version" value="18494"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/CommandLine/src/org/openstreetmap/josm/plugins/commandline/LengthAction.java
r35976 r35978 20 20 import org.openstreetmap.josm.actions.mapmode.MapMode; 21 21 import org.openstreetmap.josm.data.Bounds; 22 import org.openstreetmap.josm.data.coor.ILatLon; 22 23 import org.openstreetmap.josm.data.coor.LatLon; 23 24 import org.openstreetmap.josm.data.osm.Node; … … 149 150 150 151 private void drawingFinish() { 151 parentPlugin.loadParameter(String.valueOf(startCoor.greatCircleDistance(endCoor)), true); 152 parentPlugin.loadParameter(String.valueOf(startCoor.greatCircleDistance((ILatLon) endCoor)), true); 152 153 drawStartPos = null; 153 154 drawing = false; … … 191 192 endCoor = map.mapView.getLatLon(drawEndPos.x, drawEndPos.y); 192 193 if (drawing) { 193 map.statusLine.setDist(startCoor.greatCircleDistance(endCoor)); 194 map.statusLine.setDist(startCoor.greatCircleDistance((ILatLon) endCoor)); 194 195 map.mapView.repaint(); 195 196 }
Note:
See TracChangeset
for help on using the changeset viewer.