Changeset 10181 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2016-05-11T04:44:00+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java
r10131 r10181 287 287 case "download": 288 288 289 if (lastZoomTime > 0 && System.currentTimeMillis() - lastZoomTime > Main.pref.getLong("zoom.bounds.reset.time", 10 *1000)) {289 if (lastZoomTime > 0 && System.currentTimeMillis() - lastZoomTime > Main.pref.getLong("zoom.bounds.reset.time", 10L*1000L)) { 290 290 lastZoomTime = -1; 291 291 } -
trunk/src/org/openstreetmap/josm/actions/JumpToAction.java
r9062 r10181 187 187 188 188 // 10 000 000 = 10 000 * 1000 = World * (km -> m) 189 zm.setText(Double.toString(Math.round(10000000 * Math.pow(2, (-1) * zoomLvl))));189 zm.setText(Double.toString(Math.round(10000000d * Math.pow(2d, (-1d) * zoomLvl)))); 190 190 } 191 191 } -
trunk/src/org/openstreetmap/josm/actions/UnGlueAction.java
r9970 r10181 562 562 private static void execCommands(List<Command> cmds, List<Node> newNodes) { 563 563 Main.main.undoRedo.add(new SequenceCommand(/* for correct i18n of plural forms - see #9110 */ 564 trn("Dupe into {0} node", "Dupe into {0} nodes", newNodes.size() + 1 , newNodes.size() + 1), cmds));564 trn("Dupe into {0} node", "Dupe into {0} nodes", newNodes.size() + 1L, newNodes.size() + 1L), cmds)); 565 565 // select one of the new nodes 566 566 getCurrentDataSet().setSelected(newNodes.get(0)); -
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r10179 r10181 1142 1142 Point p2 = mv.getPoint(currentMouseEastNorth); 1143 1143 1144 double t = Math.atan2( p2.y-p1.y, p2.x-p1.x) + Math.PI;1144 double t = Math.atan2((double) p2.y - p1.y, (double) p2.x - p1.x) + Math.PI; 1145 1145 1146 1146 b.moveTo(p1.x, p1.y); … … 1483 1483 if (absoluteFix) { 1484 1484 b.moveTo(p2.x, p2.y); 1485 b.lineTo(2 *p1.x-p2.x, 2*p1.y-p2.y); // bi-directional line1485 b.lineTo(2f*p1.x-p2.x, 2f*p1.y-p2.y); // bi-directional line 1486 1486 } else { 1487 1487 b.moveTo(p2.x, p2.y);
Note:
See TracChangeset
for help on using the changeset viewer.