Commit a43a1ec1 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix symbol positionning when loading

parent 5b1f6c7a
......@@ -438,6 +438,11 @@ class SDL_Scene(QtGui.QGraphicsScene, object):
symbol.update_connections()
for child in symbol.childItems():
fix_pos_from_ast(child)
# Update the position anyway, because
# depending on the host platform, the exact
# pixel position and size of symbols can
# vary - due to font rendering, etc.
child.update_position()
except AttributeError:
# no AST
pass
......
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