Changeset 10868 in josm for trunk/src/org/openstreetmap/josm/gui/datatransfer/importers/PrimitiveDataPaster.java
- Timestamp:
- 2016-08-21T15:41:19+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/datatransfer/importers/PrimitiveDataPaster.java
r10766 r10868 26 26 import org.openstreetmap.josm.gui.datatransfer.data.PrimitiveTransferData; 27 27 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 28 import org.openstreetmap.josm.tools.bugreport.BugReport; 28 29 29 30 /** … … 67 68 // Update references in copied buffer 68 69 for (PrimitiveData data : bufferCopy) { 69 if (data instanceof NodeData) { 70 NodeData nodeData = (NodeData) data; 71 nodeData.setEastNorth(nodeData.getEastNorth().add(offset)); 72 } else if (data instanceof WayData) { 73 updateNodes(newIds.get(OsmPrimitiveType.NODE), data); 74 } else if (data instanceof RelationData) { 75 updateMembers(newIds, data); 70 try { 71 if (data instanceof NodeData) { 72 NodeData nodeData = (NodeData) data; 73 nodeData.setEastNorth(nodeData.getEastNorth().add(offset)); 74 } else if (data instanceof WayData) { 75 updateNodes(newIds.get(OsmPrimitiveType.NODE), data); 76 } else if (data instanceof RelationData) { 77 updateMembers(newIds, data); 78 } 79 } catch (RuntimeException e) { 80 throw BugReport.intercept(e).put("data", data); 76 81 } 77 82 } … … 87 92 88 93 for (PrimitiveData data : pasteBuffer.getAll()) { 89 if (data.isIncomplete() ) {94 if (data.isIncomplete() || !data.isVisible()) { 90 95 continue; 91 96 }
Note:
See TracChangeset
for help on using the changeset viewer.