Commit 1d099988 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix symbol creation

parent f9325401
......@@ -1016,8 +1016,9 @@ class Process(HorizontalSymbol):
def __init__(self, ast=None, subscene=None):
ast = ast or ogAST.Process()
self.ast = ast
label = ast.processName + (': {}'.format(ast.instance_of_name) \
if ast.instance_of_name else '')
label = (ast.processName or "") + (': {}'
.format(ast.instance_of_name)
if ast.instance_of_name else '')
super(Process, self).__init__(parent=None,
text=label,
x=ast.pos_x,
......
Supports Markdown
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