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
34951cf3
Commit
34951cf3
authored
Sep 02, 2014
by
Maxime Perrotin
Browse files
Minor bugfix when trying to save a model with no scene
parent
7cfbd7d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Connectors.py
View file @
34951cf3
...
...
@@ -242,6 +242,8 @@ class Channel(Connection):
super
(
Channel
,
self
).
__init__
(
process
,
process
)
self
.
label_in
=
QGraphicsTextItem
(
'[]'
,
parent
=
self
)
self
.
label_out
=
QGraphicsTextItem
(
'[]'
,
parent
=
self
)
#self.label_in.setTextInteractionFlags(Qt.TextEditorInteraction)
#self.label_out.setTextInteractionFlags(Qt.TextEditorInteraction)
if
not
Channel
.
in_sig
:
# keep at class level as long as only one process is supported
# when copy-pasting a process the challel in/out signal lists
...
...
opengeode.py
View file @
34951cf3
...
...
@@ -1308,6 +1308,11 @@ class SDL_View(QtGui.QGraphicsView, object):
scene
=
self
.
parent_scene
[
0
][
0
]
else
:
scene
=
self
.
scene
()
if
not
scene
:
LOG
.
info
(
'No scene - nothing to save'
)
return
False
# Translate scenes to avoid negative coordinates
for
each
in
scene
.
all_nested_scenes
:
each
.
translate_to_origin
()
...
...
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