Changeset 11374 in josm for trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
- Timestamp:
- 2016-12-09T23:31:13+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
r11116 r11374 31 31 import org.openstreetmap.josm.gui.ConditionalOptionPaneUtil; 32 32 import org.openstreetmap.josm.gui.Notification; 33 import org.openstreetmap.josm.tools.JosmRuntimeException; 33 34 import org.openstreetmap.josm.tools.Shortcut; 34 35 … … 294 295 w.calcDirections(Direction.RIGHT.changeBy(directionOffset)); 295 296 if (angleToDirectionChange(refHeading - w.heading, TOLERANCE2) != 0) 296 throw new RuntimeException();297 throw new JosmRuntimeException("orthogonalize error"); 297 298 totSum = EN.sum(totSum, w.segSum); 298 299 } … … 403 404 } 404 405 } 405 if (!s.isEmpty()) throw new RuntimeException();406 if (!s.isEmpty()) throw new JosmRuntimeException("orthogonalize error"); 406 407 } 407 408
Note:
See TracChangeset
for help on using the changeset viewer.