Changeset 35976 in osm for applications/editors/josm/plugins/CommandLine
- Timestamp:
- 2022-06-14T20:11:21+02:00 (2 years ago)
- Location:
- applications/editors/josm/plugins/CommandLine/src/org/openstreetmap/josm/plugins/commandline
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/CommandLine/src/org/openstreetmap/josm/plugins/commandline/LengthAction.java
r35942 r35976 137 137 mousePos = e.getPoint(); 138 138 if (nearestNode != null) { 139 drawStartPos = MainApplication.getMap().mapView.getPoint(nearestNode .getCoor());139 drawStartPos = MainApplication.getMap().mapView.getPoint(nearestNode); 140 140 } else { 141 141 drawStartPos = mousePos; … … 186 186 MapFrame map = MainApplication.getMap(); 187 187 if (nearestNode != null) 188 drawEndPos = map.mapView.getPoint(nearestNode .getCoor());188 drawEndPos = map.mapView.getPoint(nearestNode); 189 189 else 190 190 drawEndPos = mousePos; -
applications/editors/josm/plugins/CommandLine/src/org/openstreetmap/josm/plugins/commandline/PointAction.java
r35297 r35976 76 76 if (e.getButton() == MouseEvent.BUTTON1) { 77 77 if (isCtrlDown) { 78 if ( pointList.size() > 0) {78 if (!pointList.isEmpty()) { 79 79 pointList.remove(pointList.size() - 1); 80 80 updateTextEdit(); … … 88 88 return; 89 89 } 90 LatLon coor = node.getCoor(); 91 String point = String.valueOf(coor.getX()) + "," + String.valueOf(coor.getY()); 90 String point = node.lon() + "," + node.lat(); 92 91 int maxInstances = parentPlugin.currentCommand.parameters.get(parentPlugin.currentCommand.currentParameterNum).maxInstances; 93 92 if (maxInstances == 1) {
Note:
See TracChangeset
for help on using the changeset viewer.