mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-14 03:09:08 +00:00
don't evaluate the child-nodes when there are none, directly just return ()
This commit is contained in:
parent
d6251c2a1a
commit
516d5c9a47
1 changed files with 8 additions and 1 deletions
|
@ -297,9 +297,16 @@ QString ExpressionNode::build() const
|
|||
|
||||
QStringList l = m_name.split( ' ' );
|
||||
result = l[ 0 ];
|
||||
result += "( ";
|
||||
|
||||
int c = m_links.count();
|
||||
if( c == 1 )
|
||||
{
|
||||
result += "()";
|
||||
return result;
|
||||
}
|
||||
|
||||
result += "( ";
|
||||
|
||||
for( int i = 1; i < c; i++ )
|
||||
{
|
||||
ExpressionLink *link = m_links[ i ];
|
||||
|
|
Loading…
Reference in a new issue