Skip to content
This repository has been archived by the owner on Feb 3, 2025. It is now read-only.

Fix build with graphviz 10.0 #3373

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions gazebo/gui/qgv/QGVSubGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ QString QGVSubGraph::name() const

QGVNode *QGVSubGraph::addNode(const QString &label)
{
Agnode_t *node = agnode(_sgraph->graph(), NULL, TRUE);
Agnode_t *node = agnode(_sgraph->graph(), NULL, 1);
if (node == NULL)
{
qWarning()<<"Invalid sub node :"<<label;
return 0;
}
agsubnode(_sgraph->graph(), node, TRUE);
agsubnode(_sgraph->graph(), node, 1);

QGVNode *item = new QGVNode(new QGVNodePrivate(node), _scene);
item->setLabel(label);
Expand All @@ -66,10 +66,10 @@ QGVSubGraph *QGVSubGraph::addSubGraph(const QString &_name, bool cluster)
if (cluster)
{
sgraph = agsubg(_sgraph->graph(),
("cluster_" + _name).toLocal8Bit().data(), TRUE);
("cluster_" + _name).toLocal8Bit().data(), 1);
}
else
sgraph = agsubg(_sgraph->graph(), _name.toLocal8Bit().data(), TRUE);
sgraph = agsubg(_sgraph->graph(), _name.toLocal8Bit().data(), 1);

if (sgraph == NULL)
{
Expand Down
Loading