]> granicus.if.org Git - graphviz/commitdiff
gvFreeLayout: remove incorrect comment about only the root graph having a drawing
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 6 Jul 2022 12:56:16 +0000 (14:56 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 25 Jul 2022 18:24:49 +0000 (20:24 +0200)
This comment was added in c55b546e3965a8dfd2a66763961c4a8003e433bf,
but both subgraphs and root graphs have a reference to (the same)
drawing through this statement in gvLayoutJobs:

    GD_drawing(agroot(g)) = GD_drawing(g);

lib/gvc/gvlayout.c

index a8cde85c072e495a7b07cdf30494b16fc9908dbc..c0ffe0785e06ff48a42177bd8bfa9b2fbfea3382 100644 (file)
@@ -102,7 +102,6 @@ bool gvLayoutDone(Agraph_t * g)
  * First, if the graph has a layout-specific cleanup function attached,
  * use it and reset.
  * Then, if the root graph has not been cleaned up, clean it up and reset.
- * Only the root graph has GD_drawing non-null.
  */
 int gvFreeLayout(GVC_t * gvc, Agraph_t * g)
 {