Skip to content

Commit 716aea1

Browse files
committed
fix SVG rendering on OGDF 2020.02 (Catalpa)
1 parent ac39870 commit 716aea1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/ogdf_python/pythonize/render.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ def GraphAttributes_to_html(self):
1313
SVGConf.bezierInterpolation(True)
1414
SVGConf.curviness(0.3)
1515
with tempfile.NamedTemporaryFile("w+t", suffix=".svg", prefix="ogdf-python-") as f:
16-
# os = cppyy.gbl.std.ofstream(f.name)
17-
# cppyy.bind_object(cppyy.addressof(os), "std::basic_ostream<char>")
18-
cppyy.gbl.ogdf.GraphIO.drawSVG(self, f.name, SVGConf)
19-
# os.close()
16+
os = cppyy.gbl.std.ofstream(f.name)
17+
cppyy.gbl.ogdf.GraphIO.drawSVG(self, os, SVGConf)
18+
os.close()
2019
return f.read()

0 commit comments

Comments
 (0)