Changeset 35452 in osm for applications/editors/josm/plugins/splinex/src/org
- Timestamp:
- 2020-05-15T10:00:32+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/splinex/src/org/openstreetmap/josm/plugins/Splinex/DrawSplineAction.java
r34557 r35452 187 187 + ph.sn.cnext.north()) < EPSILON); 188 188 } 189 if (ph.point == SplinePoint.ENDPOINT && !UndoRedoHandler.getInstance().commands.isEmpty()) {190 Command cmd = UndoRedoHandler.getInstance(). commands.getLast();189 if (ph.point == SplinePoint.ENDPOINT && UndoRedoHandler.getInstance().hasUndoCommands()) { 190 Command cmd = UndoRedoHandler.getInstance().getLastCommand(); 191 191 if (cmd instanceof MoveCommand) { 192 192 mc = (MoveCommand) cmd; … … 198 198 } 199 199 } 200 if (ph.point != SplinePoint.ENDPOINT && !UndoRedoHandler.getInstance().commands.isEmpty()) {201 Command cmd = UndoRedoHandler.getInstance(). commands.getLast();200 if (ph.point != SplinePoint.ENDPOINT && UndoRedoHandler.getInstance().hasUndoCommands()) { 201 Command cmd = UndoRedoHandler.getInstance().getLastCommand(); 202 202 if (!(cmd instanceof Spline.EditSplineCommand && ((Spline.EditSplineCommand) cmd).sn == ph.sn)) 203 203 dragControl = true; … … 210 210 } 211 211 if (spl.isClosed()) return; 212 if (direction == 0) 213 if (spl.nodeCount() < 2) 212 if (direction == 0) { 213 if (spl.nodeCount() < 2) { 214 214 direction = 1; 215 else215 } else { 216 216 return; 217 } 218 } 217 219 Node n = null; 218 220 boolean existing = false;
Note:
See TracChangeset
for help on using the changeset viewer.