Commit 3ab61022 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Improve the png output

parent 94e4f100
......@@ -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)
......
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