Changeset 32732 in osm for applications/editors/josm/plugins/measurement/src/org/openstreetmap
- Timestamp:
- 2016-07-27T21:05:42+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementDialog.java
r32454 r32732 90 90 { 91 91 super(tr("Measured values"), "measure", tr("Open the measurement window."), 92 Shortcut.registerShortcut("subwindow:measurement", tr("Toggle: {0}", tr("Measured values")),93 KeyEvent.VK_U, Shortcut.CTRL_SHIFT), 150);92 Shortcut.registerShortcut("subwindow:measurement", tr("Toggle: {0}", tr("Measured values")), 93 KeyEvent.VK_U, Shortcut.CTRL_SHIFT), 150); 94 94 95 95 resetButton = new SideButton(new AbstractAction() { … … 139 139 140 140 createLayout(valuePanel, false, Arrays.asList(new SideButton[] { 141 resetButton141 resetButton 142 142 })); 143 143 … … 210 210 //http://local.wasp.uwa.edu.au/~pbourke/geometry/polyarea/ 211 211 wayArea += (MeasurementLayer.calcX(n.getCoor()) * MeasurementLayer.calcY(lastN.getCoor())) 212 212 - (MeasurementLayer.calcY(n.getCoor()) * MeasurementLayer.calcX(lastN.getCoor())); 213 213 segAngle = MeasurementLayer.angleBetween(lastN.getCoor(), n.getCoor()); 214 214 } 215 215 lastN = n; 216 216 } 217 if (lastN != null && lastN == w.getNodes().iterator().next())217 if (lastN != null && lastN.equals(w.getNodes().iterator().next())) 218 218 wayArea = Math.abs(wayArea / 2); 219 219 else
Note:
See TracChangeset
for help on using the changeset viewer.