Changeset 10228 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode
- Timestamp:
- 2016-05-16T14:59:34+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r10181 r10228 896 896 897 897 /** 898 * if one of the ends of {@code way} is given {@code 899 * then set 898 * if one of the ends of {@code way} is given {@code node}, 899 * then set currentBaseNode = node and previousNode = adjacent node of way 900 900 * @param way way to continue 901 901 * @param node starting node … … 1692 1692 } 1693 1693 1694 private void nextSnapMode() {1695 if (snapOn) {1696 // turn off snapping if we are in fixed mode or no actile snapping line exist1697 if (fixed || !active) {1698 snapOn = false;1699 unsetFixedMode();1700 } else {1701 setFixedMode();1702 }1703 } else {1704 snapOn = true;1705 unsetFixedMode();1706 }1707 checkBox.setState(snapOn);1708 customBaseHeading = -1;1709 }1710 1711 1694 private void enableSnapping() { 1712 1695 snapOn = true; … … 1729 1712 } 1730 1713 1731 public 1714 public void unsetFixedMode() { 1732 1715 fixed = false; 1733 1716 absoluteFix = false; … … 1736 1719 } 1737 1720 1738 public 1721 public boolean isActive() { 1739 1722 return active; 1740 1723 } 1741 1724 1742 public 1725 public boolean isSnapOn() { 1743 1726 return snapOn; 1744 1727 }
Note:
See TracChangeset
for help on using the changeset viewer.