Source: dyssol Version: 1.5.0-1 Severity: normal Tags: ftbfs patch X-Debbugs-Cc: [email protected]
Hi, Your package participates in the upcoming Graphviz transition. There are some API changes and to make life easier, I provide a patch. Regards, Laszlo/GCS
Description: graphviz 14+ update Follow the API changes. Author: Laszlo Boszormenyi (GCS) <[email protected]> Forwarded: no Last-Update: 2025-11-22 --- --- a/GUIDialogs/FlowsheetEditor/GraphvizHandler.cpp +++ b/GUIDialogs/FlowsheetEditor/GraphvizHandler.cpp @@ -80,7 +80,7 @@ Agraph_t* CGraphvizHandler::CreateGraph( char valShapePlain[] = "plaintext"; // create directed graph - constexpr Agdesc_t directed{ 1,0,0,1,0,0,0,0 }; + constexpr Agdesc_t directed{ 1,0,0,1,0,0,0 }; Agraph_t* graph = agopen(empty, directed, nullptr); agsafeset(graph, attrNodesep, valNodesep, empty); agsafeset(graph, attrFontsize, valFontsize, empty); @@ -100,7 +100,7 @@ Agraph_t* CGraphvizHandler::CreateGraph( char* nodeName = agstrdup(graph, u->GetKey().data()); auto* node = agnode(graph, nodeName, 1); - agstrfree(graph, nodeName); + agstrfree(graph, nodeName, true); switch (m_style) { @@ -109,7 +109,7 @@ Agraph_t* CGraphvizHandler::CreateGraph( char* nodeLabel = agstrdup(graph, u->GetName().data()); agsafeset(node, attrShape, valShapeBox, empty); agsafeset(node, attrLabel, nodeLabel, empty); - agstrfree(graph, nodeLabel); + agstrfree(graph, nodeLabel, true); break; } case EStyle::WITH_PORTS: @@ -135,7 +135,7 @@ Agraph_t* CGraphvizHandler::CreateGraph( html += "</TR></TABLE>"; char* nodeHtml = agstrdup_html(graph, html.data()); agsafeset(node, attrLabel, nodeHtml, empty); - agstrfree(graph, nodeHtml); + agstrfree(graph, nodeHtml, true); break; } } @@ -155,7 +155,7 @@ Agraph_t* CGraphvizHandler::CreateGraph( char* edgeName = agstrdup(graph, stream->GetName().data()); auto* edge = agedge(graph, nodes[unitO->GetKey()], nodes[unitI->GetKey()], edgeName, 1); agsafeset(edge, attrLabel, edgeName, empty); - agstrfree(graph, edgeName); + agstrfree(graph, edgeName, true); switch (m_style) {

