From: Magnus Jacobsson Date: Wed, 6 Jul 2022 12:56:16 +0000 (+0200) Subject: gvFreeLayout: remove incorrect comment about only the root graph having a drawing X-Git-Tag: 5.0.1~31^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45f78e39949258ad77fc2b643922cf498c0c44eb;p=graphviz gvFreeLayout: remove incorrect comment about only the root graph having a drawing 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); --- diff --git a/lib/gvc/gvlayout.c b/lib/gvc/gvlayout.c index a8cde85c0..c0ffe0785 100644 --- a/lib/gvc/gvlayout.c +++ b/lib/gvc/gvlayout.c @@ -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) {