Ignore:
Timestamp:
2009-11-08T15:19:50+01:00 (14 years ago)
Author:
jttt
Message:

Add clearId parameter to primitives copy constructor, replace some clearOsmId calls, throw exception if id is set after primitive was added to the dataset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/UnGlueAction.java

    r2381 r2410  
    22package org.openstreetmap.josm.actions;
    33
     4import static org.openstreetmap.josm.gui.help.HelpUtil.ht;
    45import static org.openstreetmap.josm.tools.I18n.tr;
    5 import static org.openstreetmap.josm.gui.help.HelpUtil.ht;
    66
    77import java.awt.event.ActionEvent;
     
    157157        cmds.add(new ChangeCommand(selectedNode, c));
    158158
    159         Node n = new Node(selectedNode);
    160         n.clearOsmId();
     159        Node n = new Node(selectedNode, true);
    161160
    162161        // If this wasn't called from menu, place it where the cursor is/was
     
    302301            if (originalNode == pushNode) {
    303302                // clone the node for all other ways
    304                 pushNode = new Node(pushNode);
    305                 pushNode.clearOsmId();
     303                pushNode = new Node(pushNode, true);
    306304                newNodes.add(pushNode);
    307305                cmds.add(new AddCommand(pushNode));
Note: See TracChangeset for help on using the changeset viewer.