Ticket #2585: DuplicateAction-pasteData.patch

File DuplicateAction-pasteData.patch, 575 bytes (added by avarab@…, 9 years ago)

Just set the second parameter to null when we have no source layer?

  • src/org/openstreetmap/josm/actions/DuplicateAction.java

     
    2626    }
    2727
    2828    public void actionPerformed(ActionEvent e) {
    29         PasteAction.pasteData(CopyAction.copyData(), e);
     29        PasteAction.pasteData(CopyAction.copyData(), null, e);
    3030    }
    3131
    3232    public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) {