diff options
| author | Alon Levy <alon@pobox.com> | 2015-04-06 12:15:18 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-04-06 12:15:18 +0300 |
| commit | e5d8c63309a658c8a0f195cac704f7b545a0f922 (patch) | |
| tree | a97764f896f14cf781ec7dffe9b97fc1d83b21f2 /src/client/view/selection.js | |
| parent | 332f5e5c88d4aec9e5c3a1703ec78af625962b8e (diff) | |
client/view/selection: on diff for link editing don't select too many nodes
Diffstat (limited to 'src/client/view/selection.js')
| -rw-r--r-- | src/client/view/selection.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/view/selection.js b/src/client/view/selection.js index 25f8cbed..6f7d24b4 100644 --- a/src/client/view/selection.js +++ b/src/client/view/selection.js @@ -64,8 +64,11 @@ function listen_on_diff_bus(diffBus) root_nodes = root_nodes.filter(function (n) { return get_main_graph().find_node__by_id(n.id) !== null; }); + selected_nodes = selected_nodes.filter(function (n) { + return get_main_graph().find_node__by_id(n.id) !== null; + }); // reselect based on current graph - inner_select_nodes(root_nodes); + inner_select(root_nodes, selected_nodes); }); } |
