Skip to content

Commit

Permalink
Bugfix: Nodes with empty names in display by condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ftadel committed Jul 19, 2022
1 parent fe7b654 commit 826ec2b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/license.html
Expand Up @@ -5,7 +5,7 @@
<body alink="#fff000" link="#fff000" vlink="#fff000">
<h4><span style="font-family: Arial Black; color: #ffffff;"><strong>THERE IS NO UNDO BUTTON!<BR>SET UP A <FONT color=red>BACKUP</FONT> OF YOUR DATABASE</strong></span></h4>
<HR>
<!-- LICENCE_START -->Version: 3.220718 (18-Jul-2022)<br>
<!-- LICENCE_START -->Version: 3.220719 (19-Jul-2022)<br>
<span style="font-style: italic;">COPYRIGHT &copy; 2000-2022
USC &amp; McGill University.<br>
</span>
Expand Down
2 changes: 1 addition & 1 deletion doc/version.txt
@@ -1,2 +1,2 @@
% Brainstorm
% v. 3.220718 (18-Jul-2022)
% v. 3.220719 (19-Jul-2022)
4 changes: 2 additions & 2 deletions toolbox/tree/node_create_db_studies.m
Expand Up @@ -571,9 +571,9 @@
% Remove temporary analysis node
nodeListIntra_cond.removeFromParent();
% If there are other special nodes (Analysis-Inter, GlobalCommonfiles), put it after them
if (nbChild >= 2) && (nodeParent.getChildAt(1).toString.charAt(0) == '(')
if (nbChild >= 2) && (length(nodeParent.getChildAt(1).toString) > 1) && (nodeParent.getChildAt(1).toString.charAt(0) == '(')
iInsert = 2;
elseif (nbChild >= 1) && (nodeParent.getChildAt(0).toString.charAt(0) == '(')
elseif (nbChild >= 1) && (length(nodeParent.getChildAt(0).toString) > 1) && (nodeParent.getChildAt(0).toString.charAt(0) == '(')
iInsert = 1;
else
iInsert = 0;
Expand Down

0 comments on commit 826ec2b

Please sign in to comment.