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
3ab61022
Commit
3ab61022
authored
Apr 16, 2017
by
Maxime Perrotin
Browse files
Improve the png output
parent
94e4f100
Changes
1
Hide whitespace changes
Inline
Side-by-side
opengeode/opengeode.py
View file @
3ab61022
...
...
@@ -1100,6 +1100,7 @@ class SDL_Scene(QtGui.QGraphicsScene, object):
LOG
.
debug
(
str
(
traceback
.
format_exc
()))
LOG
.
error
(
str
(
err
))
other_scene
.
paste_symbols
()
other_scene
.
scene_refresh
()
each
.
select
(
False
)
rect
=
other_scene
.
sceneRect
()
...
...
@@ -1124,6 +1125,7 @@ class SDL_Scene(QtGui.QGraphicsScene, object):
else
:
LOG
.
error
(
'Output format not supported: '
+
doc_format
)
painter
=
QtGui
.
QPainter
(
device
)
other_scene
.
scene_refresh
()
other_scene
.
render
(
painter
,
source
=
rect
)
try
:
device
.
save
(
filename
)
...
...
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