Changeset 14003 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2018-07-06T00:51:36+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r13941 r14003 854 854 * mouseReleased() (FIXME). 855 855 */ 856 private void computeHelperLine() { 856 private synchronized void computeHelperLine() { 857 857 if (mousePos == null) { 858 858 // Don't draw the line. … … 931 931 * uses also lastUsedNode field 932 932 */ 933 private void determineCurrentBaseNodeAndPreviousNode(Collection<OsmPrimitive> selection) { 933 private synchronized void determineCurrentBaseNodeAndPreviousNode(Collection<OsmPrimitive> selection) { 934 934 Node selectedNode = null; 935 935 Way selectedWay = null; … … 1041 1041 * @return the current base node (can be null). If not-null, it's guaranteed the node is usable 1042 1042 */ 1043 public Node getCurrentBaseNode() { 1043 public synchronized Node getCurrentBaseNode() { 1044 1044 if (currentBaseNode != null && (currentBaseNode.getDataSet() == null || !currentBaseNode.isUsable())) { 1045 1045 currentBaseNode = null; -
trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r13809 r14003 265 265 266 266 protected void writeUnlock(boolean locked) { 267 if (locked) { 267 if (locked && dataSet != null) { 268 268 // It shouldn't be possible for dataset to become null because 269 269 // method calling setDataset would need write lock which is owned by this thread
Note:
See TracChangeset
for help on using the changeset viewer.