Changeset 19108 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode
- Timestamp:
- 2024-06-17T19:37:02+02:00 (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java
r18987 r19108 390 390 if (!map.mapView.isActiveLayerVisible()) 391 391 return; 392 if ( !(Boolean)this.getValue("active"))392 if (Boolean.FALSE.equals(this.getValue("active"))) 393 393 return; 394 394 if (e.getButton() != MouseEvent.BUTTON1) … … 512 512 if (moveCommand == null) { 513 513 //make a new move command 514 moveCommand = new MoveCommand(new ArrayList< OsmPrimitive>(movingNodeList), bestMovement);514 moveCommand = new MoveCommand(new ArrayList<>(movingNodeList), bestMovement); 515 515 UndoRedoHandler.getInstance().add(moveCommand); 516 516 } else { … … 939 939 private EastNorth calculateBestMovementAndNewNodes(EastNorth mouseEn) { 940 940 EastNorth bestMovement = calculateBestMovement(mouseEn); 941 EastNorth n1movedEn = initialN1en.add(bestMovement), n2movedEn; 941 EastNorth n1movedEn = initialN1en.add(bestMovement); 942 EastNorth n2movedEn; 942 943 943 944 // find out the movement distance, in metres … … 1158 1159 double raoffsety = symbolSize*factor*normal.getY(); 1159 1160 1160 double cx = center.getX(), cy = center.getY(); 1161 final double cx = center.getX(); 1162 final double cy = center.getY(); 1161 1163 double k = mirror ? -1 : 1; 1162 1164 Point2D ra1 = new Point2D.Double(cx + raoffsetx, cy + raoffsety);
Note:
See TracChangeset
for help on using the changeset viewer.