Changeset 10766 in josm for trunk/src/org/openstreetmap/josm/gui/datatransfer
- Timestamp:
- 2016-08-07T22:52:29+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/datatransfer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/datatransfer/OsmTransferHandler.java
r10737 r10766 83 83 * Paste the current clipboard current at the given position 84 84 * @param editLayer The layer to paste on. 85 * @param mPosition The position to paste at. 85 * @param mPosition The position to paste at. If it is <code>null</code>, the original position will be used. 86 86 */ 87 87 public void pasteOn(OsmDataLayer editLayer, EastNorth mPosition) { … … 93 93 * Paste the given clipboard current at the given position 94 94 * @param editLayer The layer to paste on. 95 * @param mPosition The position to paste at. 95 * @param mPosition The position to paste at. If it is <code>null</code>, the original position will be used. 96 96 * @param transferable The transferable to use. 97 97 */ -
trunk/src/org/openstreetmap/josm/gui/datatransfer/importers/PrimitiveDataPaster.java
r10604 r10766 50 50 51 51 EastNorth center = pasteBuffer.getCenter(); 52 EastNorth offset = center == null ? null: pasteAt.subtract(center);52 EastNorth offset = center == null || pasteAt == null ? new EastNorth(0, 0) : pasteAt.subtract(center); 53 53 54 54 AddPrimitivesCommand command = createNewPrimitives(pasteBuffer, offset, layer);
Note:
See TracChangeset
for help on using the changeset viewer.