fix direct cairo render

This commit is contained in:
Laura Klünder 2017-10-17 15:36:15 +02:00
parent 29eb814413
commit 9a295093d9

View file

@ -89,7 +89,7 @@ class SVGImage:
context.paint()
if f is None:
return surface.write_to_png()
surface.write_to_png(f)
f.write(surface.write_to_png())
elif settings.SVG_RENDERER == 'rsvg-convert':
p = subprocess.run(('rsvg-convert', '--format', 'png'),