Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
86eb4f71
Commit
86eb4f71
authored
Dec 14, 2014
by
Maxime Perrotin
Browse files
When no CIF coordinates, avoid symbol overlaps
parent
fa4b40af
Changes
1
Hide whitespace changes
Inline
Side-by-side
opengeode/opengeode.py
View file @
86eb4f71
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment