Commit 86eb4f71 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

When no CIF coordinates, avoid symbol overlaps

parent fa4b40af
......@@ -446,6 +446,16 @@ class SDL_Scene(QtGui.QGraphicsScene, object):
# Font rendering may cause slight differences
# between Linux and Windows for example.
symbol.update_position()
else:
# No CIF coordinates: (1) fix COMMENT position
# and (2) if floating, call CAM
if isinstance(symbol, genericSymbols.Comment):
symbol.pos_x = \
symbol.parent.boundingRect().width() + 15
symbol.pos_y = 0
if not symbol.hasParent:
symbol.cam(symbol.position,
symbol.position)
except AttributeError:
# no AST, ignore (e.g. Connections, Cornergrabbers)
pass
......
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