virtualCmds.add(new MoveCommand(virtualNode, dx, dy));
String text = trn("Add and move a virtual new node to way",
"Add and move a virtual new node to {0} ways", virtualWays.size(),
virtualWays.size());
Main.main.undoRedo.add(new SequenceCommand(text, virtualCmds));
<BUG>selectPrims(Collections.singleton((OsmPrimitive)virtualNode), false, false, false, false);
virtualWays.clear();</BUG>
virtualNode = null;
} else {
Collection<OsmPrimitive> selection = getCurrentDataSet().getSelectedNodesAndWays();

virtualCmds.add(new MoveCommand(virtualNode, dx, dy));
String text = trn("Add and move a virtual new node to way",
"Add and move a virtual new node to {0} ways", virtualWays.size(),
virtualWays.size());
Main.main.undoRedo.add(new SequenceCommand(text, virtualCmds));
getCurrentDataSet().setSelected(Collections.singleton((OsmPrimitive)virtualNode));
virtualWays.clear();
virtualNode = null;
} else {
Collection<OsmPrimitive> selection = getCurrentDataSet().getSelectedNodesAndWays();
