]> granicus.if.org Git - graphviz/commit
dot.demo/neatopack.c: add missing initialization
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 4 Jul 2022 09:43:14 +0000 (11:43 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 25 Jul 2022 18:24:49 +0000 (20:24 +0200)
commit425bdd6de7f18538c68adb51cf82136d53114e17
treeaeac64f050629ac518d49121c791fc87896ab375
parentac38b5d2eeaec1cf31932b9591b15021794633b6
dot.demo/neatopack.c: add missing initialization

Normally gvLayoutJobs does this initialization, but since we call
ccomps before doing the layout and it expects graphs and nodes to have
'Agraphinfo_t' and 'Anodeinfo_t' records attached already, we must do
this initialization in the user program instead, see
https://graphviz.org/pdf/pack.3.pdf.

Fixes first part of
https://gitlab.com/graphviz/graphviz/-/issues/1800.
dot.demo/neatopack.c