Commit 164d6a9e authored by Romain Loth's avatar Romain Loth

fix selection bug when empty sel goes back to level global

parent 17102991
...@@ -741,7 +741,8 @@ function changeLevel(optionalTgtState) { ...@@ -741,7 +741,8 @@ function changeLevel(optionalTgtState) {
// Selection is unchanged, but all the nodes are new // Selection is unchanged, but all the nodes are new
// so we call MultipleSelection2 to set up node attributes // so we call MultipleSelection2 to set up node attributes
TW.instance.selNgn.MultipleSelection2({nodes:sels, noState:true}); if (sels.length)
TW.instance.selNgn.MultipleSelection2({nodes:sels, noState:true});
// if caller already had the state, he may or may not want to push it // if caller already had the state, he may or may not want to push it
if (! optionalTgtState) { if (! optionalTgtState) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment