Don't include subflow meta-port nodes in exported selection

Fixes #1362
This commit is contained in:
Nick O'Leary
2017-08-08 15:48:54 +01:00
parent 5b3b5271ad
commit 96a0dbea2d

View File

@@ -203,7 +203,8 @@ RED.clipboard = (function() {
var nodes = null;
if (type === 'export-range-selected') {
var selection = RED.view.selection();
nodes = RED.nodes.createExportableNodeSet(selection.nodes);
// Don't include the subflow meta-port nodes in the exported selection
nodes = RED.nodes.createExportableNodeSet(selection.nodes.filter(function(n) { return n.type !== 'subflow'}));
} else if (type === 'export-range-flow') {
var activeWorkspace = RED.workspaces.active();
nodes = RED.nodes.filterNodes({z:activeWorkspace});