Skip to content

Commit

Permalink
fix SVG rendering on OGDF 2020.02 (Catalpa)
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Coder committed Sep 14, 2021
1 parent ac39870 commit 716aea1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/ogdf_python/pythonize/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ def GraphAttributes_to_html(self):
SVGConf.bezierInterpolation(True)
SVGConf.curviness(0.3)
with tempfile.NamedTemporaryFile("w+t", suffix=".svg", prefix="ogdf-python-") as f:
# os = cppyy.gbl.std.ofstream(f.name)
# cppyy.bind_object(cppyy.addressof(os), "std::basic_ostream<char>")
cppyy.gbl.ogdf.GraphIO.drawSVG(self, f.name, SVGConf)
# os.close()
os = cppyy.gbl.std.ofstream(f.name)
cppyy.gbl.ogdf.GraphIO.drawSVG(self, os, SVGConf)
os.close()
return f.read()

1 comment on commit 716aea1

@N-Coder
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ToDo check whether this requires a certain newer version of cppyy

Please sign in to comment.