]> granicus.if.org Git - graphviz/commit
gvRender*: render subgraph when given, not always root graph
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 18 Jul 2022 15:46:01 +0000 (17:46 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 25 Jul 2022 18:24:49 +0000 (20:24 +0200)
commit0035a5ae4cfabe3928741ae39c58964127f4f888
tree5ff441d726a23ea1341ed369560f3e421a5f1f26
parent23c2388d7bc353265bebe96dd9792422a749027e
gvRender*: render subgraph when given, not always root graph

These functions always rendered the root graph, even if a sub graph
was given. Apart from being incorrect, this caused
heap-buffer-overflow when trying to render a graph consisting of two
subgraph of which only one had a layout. Also, even if both subgraphs
had layouts, they somehow mixed up the bounding boxes of the graphs
causing some nodes and edges not to be rendered since they were
outside the graph bounding box.
lib/gvc/gvc.c